【发布时间】:2015-05-15 04:04:19
【问题描述】:
我需要有关 kriesi 分页的帮助...我可以看到它,但它不起作用。当我点击第 2 页时,它会显示第一页的内容。
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
<?php query_posts( array
( 'post_type'=>'post',
'posts_per_page' => 3,
'paged' => $paged
)); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" class="middle-post">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
</article>
<?php endwhile; kriesi_pagination(); endif; wp_reset_query(); ?>
【问题讨论】:
-
我刚刚意识到它不仅仅在主页上工作。谁能告诉我这是为什么?
-
我的回答解决了你的问题吗?
标签: php html css wordpress pagination