admin管理员组文章数量:1334825
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
1 Answer
Reset to default 2Check 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.
本文标签: Why are previouspostlinknextpostlink skipping some posts
版权声明:本文标题:Why are previous_post_linknext_post_link skipping some posts? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742272640a2444595.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论