Last active
April 12, 2017 11:06
-
-
Save thecodepoetry/cc1d46c8562b5b7696d5fdec3365998e to your computer and use it in GitHub Desktop.
remove meta info from archive page
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
add_action( 'get_header', 'dt_archive_layout', 10 ); | |
function dt_archive_layout() { | |
$config = Presscore_Config::get_instance(); | |
if( is_archive() || is_category() ){ | |
$config->set( 'post.meta.fields.date', '0' ); | |
$config->set( 'post.meta.fields.categories', '0' ); | |
$config->set( 'post.meta.fields.comments', '0' ); | |
$config->set( 'post.meta.fields.author', '0' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment