Removes all the post meta from displaying on single posts but not archive pages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'genesis_post_meta', 'remove_post_meta_single_posts' ); | |
function remove_post_meta_single_posts( $post_meta ) { | |
if ( is_single() ) { | |
$post_meta = '[post_categories before="' . __( 'Filed Under: ', 'minimum' ) . '"] // [post_tags before="' . __( 'Tagged: ', 'minimum' ) . '"]'; | |
return $post_meta; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment