Archived topic
Changes to the top meta appearance at single blog page
1 reply · Started by Anne-Barbara on December 9, 2022
Good day!
In analogy to the question here
https://generatepress.com/forums/topic/changes-to-the-appearance-in-the-post-list-for-comments/
I would also like to have displayed in the post view (single page) in addition to the existing comments area under the blog post at the top next to the author that the article has x comments (if it has any). If there are none, there should be no display as in the default.
Since I don't understand from the linked filters why this works on the postloop page but not on the single page, I'm also happy to learn further how filters work ;-)
Thank You!
Hi there,
try adding this snippet to include the comments-link in the single post meta:
add_action( 'wp', function() {
if ( is_single() ) {
add_filter( 'generate_show_comments', '__return_true' );
}
} );