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?
Here’s 2 solutions i tested:
Try adding support for comments in your custom post type code
You could also use
add_post_type_support
Code Source
I am using
single-comment.php
is the file that contains all the content fromcomment.php
.You can later edit this (
single-comment.php
) file.