Sign up ×
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

2 Answers 2

I am using


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

Here's 2 solutions i tested:

Try adding support for comments in your custom post type code

'supports' => array(  'comments' ),

You could also use add_post_type_support

add_action('init', 'wpsites_comments');
function wpsites_comments() {
    add_post_type_support( 'events', 'comments' );

Code Source

share|improve this answer

Your Answer


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.