我在特定类别的页面中有一些自定义帖子。我设置每页3的帖子。现在,当我点击更多链接时,我想查看旧帖子。但循环中没有更多的链接。它位于循环的上方。所以我怎么能链接到那个更多的按钮,以便我可以看到更老的帖子。
<!-- Form Around The World -->
<div class="from_around_the_world">
<h2><?php echo get_the_category_by_id(2); ?></h2>
<a class="common_style_more post_more" href="">More<span class="glyphicon glyphicon-plus"></span></a>
<div class="row">
<?php
// custom post query for catagoris
$world_news = new WP_Query('cat=2');
/* Post Query */
if($world_news->have_posts()):
while($world_news->have_posts()): $world_news->the_post();
?>
<div class="col-xs-6 col-sm-4 col-md-4 col-lg-4">
<div class="single_around_the_world">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('small-thumbnail');?></a>
<h5><?php the_title(); ?></h5>
<p><?php echo excerpt('15'); ?></p>
<a href="<?php the_permalink(); ?>">Read More</a>
</div>
</div>
<?php
endwhile;
else:
echo "There is no post";
endif;
wp_reset_postdata();
?>
</div>
</div><!-- Form Around The World -->