Hello, i need a help here.
I’am developing theme, posting is working fine but not comments, how can i “turn on” comments?
Thank you.
Hello, i need a help here.
I’am developing theme, posting is working fine but not comments, how can i “turn on” comments?
Thank you.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2> <?php the_title(); ?> </h2>
<?php
if (has_post_thumbnail()) : ?>
<figure> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('', array('class' => 'opacity-hover box-layer img-responsive ')); ?></a> </figure>
<?php endif; ?>
<p><?php the_content(); ?> </p>
<?php endwhile; endif; //ends the loop
?>
here is my code displaying posts
Just add this function
<?php comments_template(); ?>
That displays every comments to one post from all post comments.
you mean just display the count of how many comments?