从…起this answer, 现在,我有了一个调整后的WP\\U查询语句(我添加了$paged变量):
$paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;
$loop = new WP_Query( array( \'post_type\' => \'laptop\', \'postsperpage\' => \'30\', \'max_num_pages\' => 20, \'paged\' => $paged) );
if ( $loop->have_posts() ) { ?>
...output content....
} ?>
<?php if ( $loop->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous">
<?php next_posts_link( __( \'<span class="meta-nav">←</span> Previous\', \'domain\' ) ); ?>
</div>
<div class="nav-next">
<?php previous_posts_link( __( \'Next <span class="meta-nav">→</span>\', \'domain\' ) ); ?>
</div>
</div>
<?php endif; }
wp_reset_postdata();
?>
中未输出任何内容
<div class="nav-previous">
或
<div class="nav-next">
.
你能看看这里怎么了吗?