Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I cant get the comments template to show up in my single-events.php

This is my code

<?php while ( have_posts() ) : the_post(); ?>   
<?php get_template_part( 'content', 'events' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>

If I put the comments template in my events template (events.php), it will show up but it doesnt work on the single posts.

Any ideas anyone?

share|improve this question
add comment

1 Answer

I am using

comments_template('/single-comment.php');

single-comment.php is the file that contains all the content from comment.php. You can later edit this (single-comment.php) file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.