>
Download This Plugin | |
Download Elegant Themes | |
Name | Display Custom Fields |
Version | 0.1 |
Author | Benjamin J. Balter |
Rating | 20 |
Last updated | 2012-01-15 07:52:00 |
Downloads |
594
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Display Custom Fields plugin added 24 bytes of resources to the Home page and 28 bytes of resources to the sample Post page.
Display Custom Fields plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Display Custom Fields plugin ads no tables to your Wordpress blog database.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' );