Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Created March 31, 2015 18:42
Show Gist options
  • Save webmasterninjay/19e19462a2b83b74a693 to your computer and use it in GitHub Desktop.
Save webmasterninjay/19e19462a2b83b74a693 to your computer and use it in GitHub Desktop.
Genesis Theme: Remove Post Info, Post Meta from Food Recipes Archive Page
<?php
// Remove Post Info, Post Meta from Food Recipes Archive Page
function chloe_remove_post_meta() {
if( is_post_type_archive( 'food-recipes' ) ) {
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
}
add_action ( 'genesis_entry_header', 'chloe_remove_post_meta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment