Created
August 14, 2017 09:27
-
-
Save bigdigital/ec04b7dfe430cf295364f6e46ef1377f to your computer and use it in GitHub Desktop.
The7 remove excerpts from portfolio archive page
This file contains hidden or 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
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