<?php
/**
* Template Name: Blog page
* Description: The blog page
*/
get_header(); ?>
<?php
$args = array( 'numberposts' => 3 );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div class="postblog">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<span class="postdetails">
<?php the_time ('j F, Y'); ?> <span class="bullet">•</span> Posted in: <?php the_category(', '); ?>
</span>
<?php the_content(); ?>
<div class="fb">
<?php if(function_exists("wpfblike")) echo wpfblike(); ?>
</div>
</div>
<?php endforeach; ?>
</div>
<?php get_footer(); ?>
Whenever I try to use WP_Paginate or Pagenavi with this, it refuses to show up, no matter what I try to use I cannot get page navigation. I have 5 posts and only three are showing (as per the code above) so how do I get to the other two?
Have you tried using next_posts_links and previous_posts_links?