Add the function that enables support for comments to the ‘functions.php’ file…
// Enable support for comments
function add_destination_comment_support() {
add_post_type_support( 'destination', 'comments' ); // destination posts
add_post_type_support( 'travel-directory', 'comments' ); // directory items
}
add_action('init', 'add_destination_comment_support');
Save and upload.
Add the call to the comment template to the ‘single-destination.php’ template, and/or the ‘single-travel-directory.php’ template.
In ‘single-destination.php’ look for this…
<div class="intro">
<p class="lead"><?php echo get_destination_intro(); ?></p>
<div class="entry-content"><?php the_content(); ?></div>
</div>
And change it to this…
<div class="intro">
<p class="lead"><?php echo get_destination_intro(); ?></p>
<div class="entry-content"><?php the_content(); ?></div>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) {
comments_template();
}
?>
</div>
In ‘single-travel-directory.php’ look for this…
<div class="entry-content">
<?php the_content(); ?>
</div>
And change it to this…
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() ) {
comments_template();
}
?>
Save and upload.
Keep in mind that if you modify core theme files then each time you update the theme you will need to make all of those modifications again to the updated theme files. If you are going to customise PHP templates it’s best to do that in a child theme. There are more details about how to create a child theme for GoExplore! here → http://para.llel.us/support/groups/goexplore/forum/topic/child-theme-5/#post-71402