• I created a category page for each category. Everything works well except a link to comments is below the post, not the comments.php file like with the single.php page.

    How can I get comments.php to work on my category page? Please help. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check your templates against the single.php and make sure the comments code is the same.

    Thread Starter danmerk

    (@danmerk)

    I checked the code. Same thing. Exact. Hmm…

    This is single.php page code:

    <?php while (have_posts()) : the_post(); ?>

    <div class="contentinner">
    <p class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>

    <span class="date"><?php the_time('l, F jS, Y') ?></span><br><br>
    <?php the_content() ?>
    <?php comments_template(); ?>
    <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('Say something »', '1 Comment »', '% Comments »'); ?>

    </div>

    <?php endwhile; ?>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>

    This is category-2.php code:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id="contentnav">
    <p class="navlinks"> <?php previous_post_link('&laquo; %link') ?> <span class="bigbars">|</span> <?php next_post_link('%link &raquo;') ?>

    </div>

    <div id="contentside">
    <div>
    <p align="center"><img src="/~danmerk/wordpress/site/fleuron_top.gif" align="middle"><br><br><img src="/~danmerk/wordpress/site/head_viewdate.gif" align="middle">

    <p align="center"><?php get_calendar(daylength); ?>

    </div>

    <!-- <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> //-->

    <p class="subheads">Monthly Archives

    <p class="archives"><?php wp_get_archives('type=monthly&limit=12'); ?>

    <p class="subheads">Search the site<br><?php include (TEMPLATEPATH . '/searchform.php'); ?>

    </div>

    <div id="contentinner">
    <p class="title"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>" class="title"><?php the_title(); ?></a>

    <div class="content">
    <?php the_content('<p class="content">Read the rest of this entry &raquo;
    '); ?>
    <h3>On my mind that day</h3><span class="thinking"><?php echo c2c_get_custom('currently'); ?></span>&nbsp;

    <?php link_pages('<strong>Pages:</strong> ', '
    ', 'number'); ?>
    <?php comments_template(); ?>
    </div>
    </div>

    <?php endwhile; else: ?>
    Sorry, no posts matched your criteria.

    <?php endif; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No comments on Category Pages’ is closed to new replies.