-
-
Save nicolabavaro/68b92b3b8003625cd0d847509747f1fc to your computer and use it in GitHub Desktop.
remove meta info in search results
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_search() ){ | |
$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