• Resolved sukosaki

    (@sukosaki)


    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 ?>
    			</div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter sukosaki

    (@sukosaki)

    thanks mucho. That was the ticket!

    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(); ?> ?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2nd comments template – approved comments not showing’ is closed to new replies.