跳到内容

Display Custom Fields

v0.1

Ben Balter · 2012年1月15日 上架

Inserts a Wikipedia-like metabox into posts with all the post's associated custom fields and taxonomy terms.

正在使用
10 以下
评分
1.0 / 5
累计下载
1,787
最近更新
2012年1月16日
1 条评价需要 WordPress 3.3+已测试到 3.4.2

贡献者

This plugin will work, “as is”, out of the box, but assumes some level of CSS and developer customization to adapt to your site’s specific needs.

Styles can be overridden via your theme’s style.css

Functionality can be overridden via your theme’s functions.php

”Examples”

Don’t display metabox on “product” post type:

add_filter( 'display_custom_fields', 'bb_no_product_metabox' );  function bb_no_product_metabox( $true, $post ) {   if ( $post->post_type == 'product' )     return false;    return true;  } 

Don’t display the product_id metakey

add_filter( 'dcf_postmeta', 'bb_no_product_id' );  function bb_no_product_id( $postmeta ) {   unset( $postmeta['product_id'] );   return $postmeta; } 

Don’t display metabox title

add_filter( 'dcf_heading', '__return_false' ); 

Display metabox below content (rather than floated to the right)

add_filter( 'dcf_before_content', '__return_false' ); 

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums