Posts


#1

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.


#2
<?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


#3

Just add this function

<?php comments_template(); ?>


#4

That displays every comments to one post from all post comments.


#5

you mean just display the count of how many comments?