Archived topic
Remove Post meta on excerpt but not on single
5 replies · Started by Maurice on May 18, 2017
Hi,
I can easily set the post meta on "Display: none;"... but I dont want the post meta on the Excerpt (like home, category, etc...).
How to fix this?
Hope you can help, thanks,
Maurice
You can do this in Customize > Blog > Blog Content.
Let me know if you need more info :)
Hi,
Yeah I found it, but when I activate this, the meta wont show up at a single view (full item). I need to show the meta only on the full item/article, not on the excerpts.
Hope you can follow me :)
Thanks!
Ah, try this:
add_action( 'wp','tu_remove_blog_meta' );
function tu_remove_blog_meta() {
if ( ! is_singular() ) {
add_filter( 'generate_post_date_output','__return_false' );
add_filter( 'generate_post_author_output','__return_false' );
add_filter( 'generate_category_list_output','__return_false' );
add_filter( 'generate_tag_list_output','__return_false' );
add_filter( 'generate_show_comments','__return_false' );
}
}
Yeah! That's it!
Thank you very much, keep up the good work.
Greetings,
Maurice
You're welcome :)