WordPress.org

Ready to get started?Download WordPress

Forums

Comments not appearing.... (4 posts)

  1. TommyBass
    Member
    Posted 1 year ago #

    Hi,

    Not sure why this isn;t working, i have enabled comments on post and i get an email to confirm a comment has been left and need to approve, but the comment donsn;t appear under the post?

    Do i need to add any code to my php to display comments?

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    <div class="entry-content">
    <?php the_content(); ?>
    </div><!-- .entry-content -->
    <?php endwhile; // end of the loop. ?>
    <?php comments_template(); ?>

    Any ideas?

    Thanks

    Tom

  2. Peter_L
    Member
    Posted 1 year ago #

    i get an email to confirm a comment has been left and need to approve

    Approve comment - > comment shows up

    You can use the settings in your dashboard to show comments without approval (if you want this).

  3. TommyBass
    Member
    Posted 1 year ago #

    Thanks Peter, but that is my problem, after i've approved the comment it still doesn't appear?

    Any other ideas?

    Cheers

    Tom

  4. Peter_L
    Member
    Posted 1 year ago #

    Place the comments_template before the endwhile.

    (I'm sorry I really thought you hadn't approved the comment and didn't take a closer look at the code :-) )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.