我一直试图让它工作,我可以让它显示分页链接,但它只是重复了第二页第一页的内容,不知道为什么?
<div class="row">
<div class="posts">
<?php query_posts(\'showposts=10&paged=\' . get_query_var(\'paged\'));?>
<?php $the_query = new WP_Query( \'showposts=12\' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<?php get_template_part( \'partials/loop\', \'archive\' ); ?>
<?php endwhile; ?>
</div><!-- /posts -->
</div><!-- /row -->
</div>
<!-- /large-10 -->
<div class="large-2 show-for-large-up columns"></div>
<div class="large-10 medium-12 small-12 columns">
<?php if (function_exists(\'joints_page_navi\')) { ?>
<?php joints_page_navi(); ?>
<?php } else { ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link(__(\'« Older Entries\', "jointstheme")) ?></li>
<li class="next-link"><?php previous_posts_link(__(\'Newer Entries »\', "jointstheme")) ?></li>
</ul>
</nav>
<?php } ?>
</div>
</div>
<!-- /row -->