使用get_next_posts_link( string $label = null, int $max_page = 0 )
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; echo '<ul>'; while (have_posts()) : the_post(); echo '<li><a href="' . get_permalink() . '" target="_blank">' . get_the_title() . '</a></li>'; endwhile; echo '</ul>'; echo get_next_posts_link( '下一页 »', $GLOBALS['wp_query']->max_num_pages ); echo get_previous_posts_link( '&laquo; 上一页' ); wp_reset_query(); ?>