ThemeShaper Forums » Thematic


Viewing Older Posts when using a category template

(2 posts)
  • Started 8 years ago by napalm
  • Latest reply from napalm
  • This topic is not resolved
  1. Hi All,
    I have created 2 categories for my blog, so I can display 2 different index pages.
    This is working fine.

    The issue I'm having is when the amount of posts exceed the limit to display.
    I get the 'Older Posts' link at the bottom, which is to be expected, but the link doesn't do anything except for refresh the page. However the URL does change

    I'm wondering if this is this because the thematic_nav_below function (below) will need to be told to check the relevant categories for the older posts? I'm assuming that because no categories have been passed through, it does'nt know where to look.

    Has anyone had experience with this, and be willing to help me out?

    Thanks in advance

    // Action to create the below navigation
    function thematic_nav_below() {
    		if (is_single()) { ?>
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php thematic_previous_post_link() ?></div>
    				<div class="nav-next"><?php thematic_next_post_link() ?></div>
    		} else { ?>
    			<div id="nav-below" class="navigation">
                    <?php if(function_exists('wp_pagenavi')) { ?>
                    <?php wp_pagenavi(); ?>
                    <?php } else { ?>
    				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">�</span> Older posts', 'thematic')) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">�</span>', 'thematic')) ?></div>
    				<?php } ?>
    add_action('thematic_navigation_below', 'thematic_nav_below', 2);
    Posted 8 years ago #
  2. I have put the function used to create the index under an example template in this Pastebin..if that helps

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.