Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Created August 14, 2017 09:27
Show Gist options
  • Save bigdigital/ec04b7dfe430cf295364f6e46ef1377f to your computer and use it in GitHub Desktop.
Save bigdigital/ec04b7dfe430cf295364f6e46ef1377f to your computer and use it in GitHub Desktop.
The7 remove excerpts from portfolio archive page
add_action( 'get_header', 'dt_archive_layout', 10 );
function dt_archive_layout() {
if (is_archive() && get_post_type() == 'dt_portfolio') {
$config = Presscore_Config::get_instance();
$config->set( 'show_excerpts', false );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment