I want users to be able to add comments to that page.
So I went and pasted
<?php comments_template( '', true ); ?>
but still no comment fields showing:
http://roadgirls.com/2/location/eze/
Here is the code of the custom single page.
- Code: Select all
<?php
/**
*
* Single page
*
**/
global $tpl;
gk_load('header');
gk_load('before');
?>
<section id="gk-mainbody">
<?php if (have_posts()) : while (have_posts()) : the_post();
//Get the custom fields
$custom_fields = get_post_custom($post->ID);
?>
<div id="SingleMapLocation"><iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q=<?php echo $custom_fields["maplist_address"][0]?>&z=16&output=embed"></iframe></div>
<h2 id="Maplocation-<?php the_ID(); ?>"><?php the_title();?></h2>
<div id="MapDescription" class="cf">
<?php
//Post featured image
if(has_post_thumbnail($post->ID)){
the_post_thumbnail(array(300,300), array('class' => 'float_left maplist_featuredimage'));
}
//Get the main content
//$content = get_the_content();
$content = do_shortcode( get_the_content() );
if($content != ""){
echo $content;
}
else{
//If it's empty use the description field
echo $custom_fields['maplist_description'][0];
}
?>
</div>
<?php
//Show address if it is set
if(isset($custom_fields['maplist_address'])){ ?>
<div id="MapAddressContainer">
<span id="MapAddressLabel">
<?php _e('Address:','maplistpro') ?>
</span>
<div id="MapAddress">
<?php echo $custom_fields['maplist_address'][0];?>
</div>
</div>
<?php } ?>
<?php endwhile; endif;// end of the loop. ?>
<?php
if(isset($_SERVER['HTTP_REFERER'])){
$url = htmlspecialchars($_SERVER['HTTP_REFERER']);
echo "<a href='$url' id='MaplistBack' class='corePrettyStyle btn'>«" . __('Back','maplistpro') . "</a>";
}
?>
</section>
<?php
gk_load('after');
gk_load('footer');
// EOF
What can I do to make the comment field show up on that page in the frontend ?
Thank you