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.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!