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
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.

本文标签: Why are previouspostlinknextpostlink skipping some posts