is category navigation possible???
-
Here is what I am doing, i’m calling cat=1 and asking it to only showpost=1.. I then want to add navigation to previous and next post within cat ID 1… Thought I had it all figured out, but I dont… here’s by code..Any help would be great!! ??
<?php
/*
Template Name: Print Shiner 98
*/
?><?php get_header(); ?>
<div id=”content” class=”widecolumn”>
<?php query_posts(‘cat=14&showposts=1’); if (have_posts()) : while (have_posts()) : the_post();?>
<div class=”navigation”>
<div class=”alignleft”><?php previous_post_link(‘%link’, ‘Previous in category’, TRUE); ?></div>
<div class=”alignright”><?php next_post_link(‘%link’, ‘Next post in category’, TRUE); ?></div>
</div><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 »</p>’); ?>
</div>
</div><?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
<?php endwhile; endif; ?>
<?php wp_reset_query ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- The topic ‘is category navigation possible???’ is closed to new replies.