• Resolved danieltj

    (@danieltj)


    Hi,

    I’m gone over countless questions of comments not showing up when using a theme. I’m building a theme based on Twenty Twelve and the comments are not showing. What is weird is that the comment template is showing on the page, but the list of comments are not.

    The parent ordered list container is there, however within that, however many comments there are, it shows this <!-- #comment-## --> in the HTML.

    I’ve made another theme based on Twenty Twelve before so I copied the PHP from the functions file into the new themes functions file and I’m still getting the same issue.

    The comments template function is before the endwhile php tag as well and it’s clearly working, it’s just refusing to show the actual comments. Even the title where it says there has been x thoughts on this post is showing with the correct number.

    Any help please? I have no clue how to fix this. I’m running the latest WordPress version and the site is running on a localhost environment.

Viewing 1 replies (of 1 total)
  • Thread Starter danieltj

    (@danieltj)

    I’ve figured out why this was happening.

    I didn’t have the correct namespace within the functions.php and comments.php file. Ensuring that these two files had the same namespace meant it now works.

    I spent way too long trying to figure this out… ugh!

Viewing 1 replies (of 1 total)
  • The topic ‘Comments not showing in single.php post’ is closed to new replies.