[resolved] 2nd comments template - approved comments not showing (5 posts)

  1. sukosaki
    Posted 8 years ago #

    I just created a second comment template for pages on my blog. Everything was working out fine, until I tested it and approved the test comment.

    When I go to the page, I still see the regular comment form, but now approved comment.

    I made the templage for the page based on the page.php file and the 2nd comments.php file based on the original. What is missing? When I put

    <?php comments_template(); ?>

    i get what I need, but the form I need is on the 2nd comment template.

    Why can't I get approved comments to show after they are submitted from the 2nd comment form?

    This is the code I have on the new template copied from the page.php file:

    <div class="comment-wrapper">
    				<?php include (TEMPLATEPATH . '/reviewcomments.php'); // Get wp-comments.php template ?>
  2. chaoskaizer
    Posted 8 years ago #

    try ↓

    <?php comments_template('/reviewcomments.php'); ?>

    FYI, certain WP variables is within comments_template() function scope, normal include will not work properly.

    ref: comments_template

  3. sukosaki
    Posted 8 years ago #

    thanks mucho. That was the ticket!

  4. kingofxc
    Posted 7 years ago #

    This posting helped me as well :)

    I was using an older template. After upgrading from V2.0.11 to 2.6.2 the comments did not looked as the should. It seemed like wp used another comments.php than the one located in the template folder after the upgrade!

    I was forced to use:
    <?php comments_template('/comments.php'); ?>
    in my single.php and page.php.

    Why was not the correct comments.php called by:
    <?php comments_template(); ?> ?

  5. aafke
    Posted 7 years ago #

    Thank you some much, 've been looking for the answer for over an hour now! Works allright now!

Topic Closed

This topic has been closed to new replies.

About this Topic