Last active
August 29, 2015 14:06
-
-
Save srikat/6e9f458534c726c67630 to your computer and use it in GitHub Desktop.
Removing Content from displaying from a specific CPT archive in Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag | |
add_action( 'genesis_entry_header', 'sk_no_content_specific_cpt_archive' ); | |
function sk_no_content_specific_cpt_archive() { | |
if ( ! is_post_type_archive( 'books' ) ) { | |
return; | |
} | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context: http://engagewp.com/remove-excerpts-custom-post-types-archive-genesis/