I’ve been trying to find a way to remove specific meta data (author, post date, # of comments, etc) from all posts in my “Services” category (and potentially others). I’ve been looking around the WordPress forum, stackexchange and here and can’t find anything.
There are several approaches:
1) create category templates for each category you want to customize (not the best solution if you want to make a simple customization to a lot of categories, but it provides a lot of flexibility); search the WP codex for category templates for more info.
2) add a function that uses a conditional tag to a hook like genesis_before. Your function would say, in effect, “if the post is in these categories, remove the postmeta). Search the WP codex for more info on conditional tags.
Below is the remove_action that will remove postmeta:
remove_action( ‘genesis_after_post_content’, ‘genesis_post_meta’ );
Thanks, that’s exactly what I needed!
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.