Quantcast
Viewing all articles
Browse latest Browse all 10

lastraw on "previous link in category showing same current posts"

Thanks middle sister (5 months later!) but I'm not sure how this would integrate with the code that's there now?

<?php

    // calling the header.php
    get_header();

?>

<div id="box-wide">
<?php query_posts('category_name=life'); ?>

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

<div class="post">

<h3><a>"><?php the_title(); ?></a></h3>

<div class="entry">

<?php the_content(); ?>

</div>

</div>

<?php endwhile; ?>
<?php endif; ?>

<div class="navigation">

<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
				<div id="nav-below" class="navigation">
					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts' )) ?></div>
					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>' )) ?></div>
				</div><!-- #nav-below -->
<?php } ?>		

</div>

</div>

<?php get_footer(); ?>

</body>

</html>

Viewing all articles
Browse latest Browse all 10

Trending Articles