Site logo

[Support request] Changes to the top meta appearance at single blog page

Home Forums Support [Support request] Changes to the top meta appearance at single blog page

Home Forums Support Changes to the top meta appearance at single blog page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2456295
    Anne-Barbara

    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!

    #2456792
    David
    Staff
    Customer Support

    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' );
        }
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.