Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/6e9f458534c726c67630 to your computer and use it in GitHub Desktop.
Save srikat/6e9f458534c726c67630 to your computer and use it in GitHub Desktop.
Removing Content from displaying from a specific CPT archive in Genesis
<?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' );
}
@srikat
Copy link
Author

srikat commented Sep 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment