I am using a custom post type with 9 posts. Whichever post I click on the_post_navigation shows the same post. When I go to that post it shows the only other post in its taxonomy. From then on I can only navigate between the two posts in this taxonomy. I'm using the code below:
$args = array(
'prev_text' => '<span class="meta-nav"><</span> Previous: %title',
'next_text' => 'Next: %title <span class="meta-nav">></span>',
);
echo get_the_post_navigation( $args );
I am using a custom post type with 9 posts. Whichever post I click on the_post_navigation shows the same post. When I go to that post it shows the only other post in its taxonomy. From then on I can only navigate between the two posts in this taxonomy. I'm using the code below:
$args = array(
'prev_text' => '<span class="meta-nav"><</span> Previous: %title',
'next_text' => 'Next: %title <span class="meta-nav">></span>',
);
echo get_the_post_navigation( $args );
What is the context? How did you create your nine custom posts?
A possible cause is importation from e.g. a spreadsheet (CSV); I have a situation where newly-made custom posts get correct links, but all imported posts have wrong links:
"1987" is the first not-imported-from-spreadsheet post; and "1941" is by no means the oldest imported (that's "1902"; all imported are numbered consecutively 1902, 1903, ... , 1977).