• Hi all,

    I have the following code in a category template (category-1844.php) to display only posts in that category.

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="pagetitle"><?php printf(__('%s Archive', 'kubrick'), single_cat_title('', false)); ?></h2>
    
    <?php if ($prev_link || $next_link): ?>
    <div class="navigation">
    			<div class="alignleft"><?php echo $next_link; ?></div>
    			<div class="alignright"><?php echo $prev_link; ?></div>
    </div>
    <?php endif; ?>

    However, the previous and next links are not appearing. There are 44 posts in this category and I’m displaying 10 posts per page. But I can’t access the older posts because the previous link system doesn’t seem to work on this category template. This happens on templates I’ve set up for other categories as well. What might I be doing wrong or leaving out?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$prev_link and $next_link not working?’ is closed to new replies.