You can customize the ENTRY FOOTER Meta containing post meta for Blog, Post, Page, Custom posts types, archives and more Conditionally using the benefits of WordPress Conditional Tags.
The snippet will be added at the end of functions.php
Default
The Global settings can be made for post meta using this
//* Customize the entry meta in the entry footer. add_filter( 'genesis_post_meta', 'gk_post_meta_filter' ); function gk_post_meta_filter($post_meta) { $post_meta = 'Filed Under: Genesis Tutorials, Premium Content, WordPress Tutorials Tagged With: conditional tags, Post meta'; return $post_meta; }
Post Page
You can output a different post meta on Blog i.e post page using this
add_filter( 'genesis_post_meta', 'gk_remove_post_meta_conditionally' ); /* * Post meta on BLOG page. */ function gk_remove_post_meta_conditionally($post_meta) { if ( is_home() ) { $post_meta = 'Post Page Post Meta'; } return $post_meta; }
Custom Post Types
To view the full content, please sign up for the membership.
Already a member? Log in below or here.