WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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.