Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Last active April 16, 2019 14:06
Show Gist options
  • Save leepettijohn/3c5a61d145c6ee64201d to your computer and use it in GitHub Desktop.
Save leepettijohn/3c5a61d145c6ee64201d to your computer and use it in GitHub Desktop.
Removing Meta Info
add_action('genesis_before_loop','remove_info');
function remove_info(){
if (in_category(ADD_CATEGORY_NUMBER_HERE)){
//This removes the author, date, etc. at the top of the post
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
//This removes the categories and tags at the bottom of the post
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment