• I have been trying to configure the comments section of my theme for, well almost 4-days. I have searched the codex, tutorials and experimented endlessly (at this point my eyes are oozing pus).

    Presently I am calling the comments with <?php comments_template(); ?> from my single.php file. The comments.php file is using a callback to call a custom function from my functions.php file.

    The funny thing is that the post a comment form shows up, but none of the comments make an appearance. So I am thinking the problem lies within the functions file or how it’s being called.

    If there is anyone with some expertise in this area who could point me in the right direction I would greatly appreciate it. My test site is https://buenolisto.com

    I have pasted the three relevant file here in the paste pin:

    functions.php
    comments.php
    single.php

    Thanks in advance…

Viewing 6 replies - 1 through 6 (of 6 total)
  • check your discussion settings. Are you set the “Admin Approval” option?

    Thread Starter jackmarshall

    (@jackmarshall)

    I can see the comments from the “posts” section of the admin control panel. The admin approval is “unchecked”.

    The problem is the comments are not populating in the theme. When I load a “single” page, beneath the post, the comments do not appear, but the leave a comment form does.

    There is a code issue I think, which I have dissected and experimented with for days to no avail.

    I just can’t seem to figure out where I’ve gone wrong.

    Thanks…

    deactivate your all plugins and check once.

    Thread Starter jackmarshall

    (@jackmarshall)

    Deactivated the two plug ins I had running but it did not have any effect. Thanks for the suggestions, please keep them coming.

    Moderator t-p

    (@t-p)

    have you tried reverting back to the default theme (Twenty Ten) to rule out theme-specific issue?

    Thread Starter jackmarshall

    (@jackmarshall)

    I have reverted and the comments worked fine. The issue is I am using a custom theme and need to configure the comments template, along with the supporting function in functions file.

    I have tried following the Ian Stewart’s superior tutorial here: https://themeshaper.com/wordpress-themes-templates-tutorial/ for theme shaper.

    I have also tried using the comments/functions files from the twenyten them copied directly from the wordpress core trac.

    One of two things happen: (1) I get the current state whereby the leave comment form appears but not the comments. In this scenario it appears to function call back buenolist_comments is not being read by the comments.php file <?php wp_list_comments( array( 'callback' => 'buenolisto_comments' ) ); ?>

    The other scenario is when I remove certain files and it reverts back to the default comments.php file in the wp-includes/theme-compat folder. This produces comments but in a format that I am not able to manipulate the order of the information or properly style it.

    If any who is code-smart look into the links to the three files I’d posted and let me know where I’ve gone astray I’d be forever grateful.

    Thanks again for all the assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with comments not showing up’ is closed to new replies.