My code is the following:
<?php get_header(); ?>
<div id="main-content">
<section id="primary">
<!-- <h2 class="cat-title">Latest news</h2> -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="post">
<img src="">
<h2 class="post-title"><?php the_title(); ?></h2>
<?php the_content('Read More...'); ?>
<div class="post-info">
by <?php the_author(); ?>,
at <?php the_time('l F d, Y'); ?></a>
</div>
<?php previous_post_link(); ?> / <?php next_post_link(); ?>
</article>
<?php endwhile; else: ?>
<p><?php _e('No posts were found. Sorry!', 'magaziner'); ?></p>
<?php endif; ?>
<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>
<?php comment_form(); ?>
</section>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
I see only the form, but the comments are not visible. What's wrong?
get_comments()
will return such an array to pass towp_list_comments()
<?php wp_list_comments(); ?>
to under</article>
and nothing changed.