<?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(); ?>
これでWP_PaginateまたはPagenaviを使用しようとすると、何を使用しようとしても表示されず、ページナビゲーションを取得できません。5 つの投稿があり、(上記のコードのように) 3 つしか表示されていません。残りの 2 つにアクセスするにはどうすればよいですか?