I’ve been struggling to get the Jakarta theme to have a guestbook based on the geeksmakemehot instructions. The page shows fine, but the comments section doesn’t display. I’ve traced the problem to comments_popup_link() on line 95 in comment_functions.php (Wp1.5.2):
if (! is_single() && ! is_page()) {
/* **Do comment stuff** */
}
The “!is_page()” is being triggered, so the entire comments section is skipped. Can you give me a clue as to what I’m doing wrong? THANKS!
Brian
** Interesting Note: If I see a comment onto the page by showing the comment form using <?php comments_template(); ?>
, adding a comment, and removing the line, then both the seed-comment and the comment reply-form displays. Delete the comment, and the reply-form disappears again. Hmm.
The page is at https://www.samsonfamily.com/wordpress/index.php/guest-book/.
The code is as follows:
<?php
/*
Template Name: Guest Book
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<div id="headerimg">
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
<div class="entrytext">
<?php the_content('<p class="serif">Read the rest of this page »
'); ?>
<?php link_pages('<strong>Pages:</strong> ', '
', 'number'); ?>
<p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong>
<?php edit_post_link('Edit','','<strong>|</strong>'); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
<center><img src="<?php bloginfo('stylesheet_directory'); ?>/images/hr.gif" alt="The End"/></center>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '', '
'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>