Why are previous_post_linknext_post_link skipping some posts?

I have a single page template for one of my custom post types. Are the top of this page I have...<?php previous_post_

I have a single page template for one of my custom post types. Are the top of this page I have...

<?php previous_post_link('%link', 'Prev Project'); ?>

<?php next_post_link('%link', 'Next Project'); ?>

These links seem to skip some posts, but not all of them. Any idea?

I have a single page template for one of my custom post types. Are the top of this page I have...

<?php previous_post_link('%link', 'Prev Project'); ?>

<?php next_post_link('%link', 'Next Project'); ?>

These links seem to skip some posts, but not all of them. Any idea?

Share Improve this question edited Jun 20, 2013 at 19:07 s_ha_dum 65.6k13 gold badges84 silver badges174 bronze badges asked Jun 20, 2013 at 18:40 GilipeGilipe 1491 silver badge6 bronze badges 2
  • 3 What kind of posts do they skip? Is there any rule in this skipping? Does it occur even when all plugins are disabled (maybe some plugin adds filters that exclude some posts from this links). – Krzysiek Dróżdż Commented Jun 20, 2013 at 19:22
  • I tried fixing the timestamps but it didn't do the trick. My blog is skipping a few posts to the next category of posts. Any suggestions about what I can do? – Srikara Commented Jul 11, 2020 at 9:20
Add a comment  | 

1 Answer 1

Reset to default 2

Check the published date/time for the skipped posts. You will run into problems with posts published at the same time as the current post's publish time.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742272640a4412989.html

相关推荐

  • Why are previous_post_linknext_post_link skipping some posts?

    I have a single page template for one of my custom post types. Are the top of this page I have...<?php previous_post_

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信