• I’ve searched WP Support like mad for the last couple hours about this but none of the threads seem to solve my exact problem.

    I’m using Twenty Twelve theme (child theme), and in Dashboard > Settings > Reading, my Front Page is set to display “Your latest posts”.

    That is how I want it on the front page, but at the end of each post on the front page, I’d like it to show the number of replies, and by default, this is not shown, and there are no comments either.

    I don’t have a “home.php” in the Twenty Twelve theme, and I’m not really strong with PHP.

    Which file do I need to modify in my theme, and what do I need to add, to make the number of replies (comments) show up under each post on the Front Page?

    I mean that I want it to show the number of replies, not the actual comments themselves…

    For example,

    “2 Replies” and then you click it to see the post, comments, and comment form.

    Or maybe it says, “2 Comments”, and you click it to see.
    Thank you in advance for any help.

    I think what I need is this, but I’m not sure where to put it:

    <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>

    I would like it to appear just above the text at the end of each post that says:

    This entry was posted in _____ and tagged _____ on [date]

Viewing 15 replies - 1 through 15 (of 21 total)
  • I’d like it to show the number of replies, and by default, this is not shown

    It is shown – if there are any comments.

    Thread Starter flyboym535i

    (@flyboym535i)

    Sorry esmi, but it is not. On the home page, set to show “recent posts”, it doesn’t show the number of replies. I have posts with comments and it doesn’t show the number of replies, or any link to the comments.

    You have to click the post first, and then on the single post page you see the comments.

    On the home page, showing the 3 most recent posts, it doesn’t show the number of replies.

    Sorry to argue the point but: https://quirm.net/temp/2012-comment-link.png

    Thread Starter flyboym535i

    (@flyboym535i)

    Your argument isn’t helping. I can see for myself that they do not show up. Please read this carefully:

    I have posts with comments, and the template has not been edited. They do not show up by default on the Front Page, when the Dashboard > Settings > Reading > Front Pages Displays: is set to “Your latest posts”

    Perhaps you are correct if it is using a “Static Page” for the Front Page.

    I’m happy to email you a link to my site and you can see for yourself.

    The screenshot I posted above is taken from the front page of one of my development sites using an unedited copy of the Twenty Twelve theme. It’s is set to show recent posts and is not using a static front page.

    Thread Starter flyboym535i

    (@flyboym535i)

    I’m not sorry to argue the point, ?? but:
    https://cdn.ittybisous.com/no%20comments.png

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Does the same issue occur when you switch themes to the default Twenty Twelve theme?

    Thread Starter flyboym535i

    (@flyboym535i)

    Let’s not miss the point here… I’m not interested in finding out whether they’re enabled by default or not. Rather, how do I get them to appear on my Front Page?

    Currently my front page is configured via the WP Settings to show the 3 most recent posts.

    Any help in getting the replies to show up is appreciated. Everything else kind of misses the point ??

    Are you perhaps trying to show something like “0 comments” on the first page of your site’s main posts page? As I’ve said, as soon as you have comments on a post, 2012 automatically displays a link to them with the number of comments just below the post title.

    Thread Starter flyboym535i

    (@flyboym535i)

    Andrew,

    When I activate the default Twenty Twelve theme, it does show the reply count just under the post Title, on the front page.

    Which template file would be the culprit here, so I can compare the original Twenty Twelve theme file with the child theme file, to find the problem?

    Thread Starter flyboym535i

    (@flyboym535i)

    Esmi – you don’t understand. I want it to show not only when there are comments, but even when there are not. For example, if there are no comments, it should say, “Leave reply” or something similar.

    Apparently there is something wrong with a child theme page, and I need to compare the child theme page to the original template file, but I’m not sure which files to compare.

    Do either of you know which file name I should be looking at?

    index.php?
    single.php?
    content.php?
    page.php?

    I’m clueless as to which one is controlling the home page. Thanks for your help guys.

    it does show the reply count just under the post Title, on the front page.

    Thank you!!

    Which template file would be the culprit here

    What post format(s) are you using? What content-xxx./php files do you have in your child theme? It could be in any of these files.

    Thread Starter flyboym535i

    (@flyboym535i)

    The child theme was a duplicate of the original Twenty Twelve theme. The folder was an exact copy.

    I just compared index.php, page.php, and single.php and they are the same in both templates.

    Thread Starter flyboym535i

    (@flyboym535i)

    I don’t understand the question:

    What post format(s) are you using?

    What do you mean by this question?

    The child theme has all the same content-xxx.php files as the original Twenty Twelve theme. I can see the same files in both folders on the server.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Just to be sure, did you check the differences using a service like https://diffchecker.com ?

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘How can I Show # of Replies on Twenty Twelve Front Page?’ is closed to new replies.