navigation links for posts on category template (3 posts)

  1. bmohr
    Posted 7 years ago #

    Can someone please advise me as how to ad links on the bottom of this template so a user can view previous and next links for all the posts of the same category. I've tried and (feel like) I've read every post in this forum about this topic but none of what I've tried has worked.

    Here's the link to my page. (This page is a multi-post category template named F.A.T.):

    Here's my code below:
    Template Name: F.A.T.
    <?php get_header(); ?>
    <div id="content">
    <?php include(TEMPLATEPATH."/l_sidebar.php");?>
    <div id="contentmiddle">
    <h1>Facts, Apps & Trends</h1>
    <?php query_posts('category_name=FAT'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(__('Read more'));?>
    <?php trackback_rdf(); ?>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    <?php include(TEMPLATEPATH."/r_sidebar.php");?>
    <!-- The main column ends -->
    <?php get_footer(); ?>

    Thanks in advance for any help!

  2. Clayton James
    Posted 7 years ago #

    Is this of any help?

    Maybe you could define a div at the bottom of your index.php. ?
    something like this ...

    <div id="entry-navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Older Entires') ?></div>
    <div class="alignright"><?php posts_nav_link('','Newer Entries&raquo;','') ?></div>

    Something like that...

  3. bekabug
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic