rendered paste body<?php/*Template Name: BFA Posts*/?><?php get_header(); ?> <?php while (have_posts()) : the_post(); ?><?php if($post->post_parent) //Generates sub-nav links by checking if the post is a parent or a child$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");else$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");if ($children) { ?><ul id="sub_nav"><?php echo $children; ?></ul><?php } endwhile; ?> <h2><?php the_title(); ?></h2> //Displays the actual Page content if this is the first page in a series<?php $paged = (get_query_var('paged')); if ($paged < 2) { ?><?php if (have_posts()) : while (have_posts()) : the_post (); ?><div class="post"> <?php the_content('Read more »'); ?></div> <?php endwhile; else : ?><div class="post"> <h2>Whoops!</h2> <p>Sorry, you either mis-typed or clicked a link that doesn't exist on this site. If you think it's our mistake, please <a href="<?php bloginfo('url') ?>/contact/" title="Contact Us">let us know</a>!</p></div> <?php endif; } ?><?php $limit = get_option('posts_per_page'); //Kafkaesqui's custom query $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=3&showposts=' . $limit = 1 . '&paged=' . $paged); $wp_query->is_archive = true; $wp_query->is_home = false; if (have_posts()) : while (have_posts()) : the_post(); global $more; $more = false; ?><div class="post"> <h3><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title(); ?></a></h3> <small><?php the_date(); ?></small> <?php the_content('Keep reading »'); $more = true; ?></div> <?php endwhile; ?> <div class="navigation"> //Nav links <div class="alignleft"><?php posts_nav_link('','','« Older Posts') ?></div> <div class="alignright"><?php posts_nav_link('','Newer Posts »','') ?></div></div> <?php else : ?> <h2>No Entries Found</h2> <p>We're sorry, but no BFA posts were found.</p> <?php endif; ?></div><div id="footer"><?php get_footer(); ?>