Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davechu/9569770 to your computer and use it in GitHub Desktop.
Save davechu/9569770 to your computer and use it in GitHub Desktop.
add_filter( 'genesis_post_meta', 'dc_post_meta_filter', 20 );
function dc_post_meta_filter($post_meta) {
$post_meta = do_shortcode('[post_categories before="Category: "] [post_tags before="Tags: "]');
return $post_meta;
}
// OR just pull out all Post Meta material. I'm sure you can think of cases for Post (or Custom Posts) that need none of this.
remove_action('genesis_entry_footer', 'genesis_post_meta');
// OR remove "Filed Under: " and separators, leaving just the category names and links. I have extra spaces for readability (optional).
add_filter( 'genesis_post_meta', 'dc_post_meta_filter2', 20 );
function dc_post_meta_filter2($post_meta) {
$post_meta = do_shortcode('[post_categories sep="  " before=" "]');
return $post_meta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment