I'm stuck please help.. I can't figure out how-to get page navigation, 10 posts per page.. Is it screwy b/c I'm only showing posts for one category? On another template I'm having the same exact problem except it's showing all categories EXCEPT for one (CAT ID=3 //CAT ID=-3)... If someone could help me out that would be great and much much MUCH appreciated. Here's what the page looks like:
Thank you in advance!PHP Code:<?php
/*
Template Name: Memorials
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<div id="content">
<!--page.php-->
<div id="post" class="post clearfix">
<div id="blog-heading"><h1>Memorials for Loved Ones Lost</h1></div>
<?php
$recentPosts = new WP_Query();
$recentPosts->query('showposts=10&cat=3');
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<div id="h2-memorial">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</div>
<?php the_excerpt(); ?>
<?php endwhile; ?>
<div class="page-nav">
<?php wp_pagenavi(); ?> </div>
<!--page.php end-->
</div>
</div>
<?php endif; ?>
<?php get_sidebar(' '); ?>
<?php get_footer(' '); ?>



Reply With Quote




Bookmarks