• Even though I know there is one comment for this post, nothing is being returned. Can anyone help? I’m sure this was working yesterday and I’m sure I’ve undone any changes I’ve made to this file.

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <div class=”recentpost”>
    <h3>“><?php the_title(); ?></h3>
    <h4><?php the_tags(); ?></h4>
    <h5>Date: <?php the_time(‘jS F, Y’); ?></h5>
    <?php the_content(); ?>
    <div class=”comments”>

      <?php wp_list_comments(); ?>

    </div>
    </div>

    <?php endwhile; else: ?>
    <div class=”recentpost”>
    <p><Sorry, no posts matched your criteria.</p>
    </div>
    <?php endif; ?>

    Thanks,
    SC

Viewing 3 replies - 1 through 3 (of 3 total)
  • Site url?

    Is the comment pending approval / moderation?

    Thread Starter signorcorleone

    (@signorcorleone)

    The comment is the default comment, which is already approved. The code above should read:
    <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    I’m hoping it’s something glaringly obvious, although, when I think about it, things were fine until updated WordPress to the latest version. I’m going to try a reinstall.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_list_comments returns nothing’ is closed to new replies.