最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Why are previous_post_linknext_post_link skipping some posts?

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论