yankeefan2225
Member
Posted 2 years ago #
Hi all.
<?php echo "←"; ?><?php previous_post_link('%link »', '%title', TRUE,''); ?>
<?php next_post_link('%link »', '%title', TRUE,''); ?> <?php echo "→"; ?>
So what I'm trying to do here is to get links for the previous and next posts in the category, but inside the same child category, not just inside the same parent category, is this possible?
Thanks!
trixienolix
Member
Posted 2 years ago #
i'm after the same thing... anyone got any ideas?
Me too! I have been searching high and low for this. No luck so far.
esferapublica
Member
Posted 2 years ago #
same problem here, anybody an idea?
Gerald Cox
Member
Posted 2 years ago #
I need the same behavior. The old next_post function says that it will not work for child categories: http://codex.wordpress.org/Function_Reference/next_post
But the newer next_post_link says nothing about this limitation.
rhysbwaller
Member
Posted 1 year ago #
+1
I would also like the option to display the next/prev post's category (as a hyperlink to the archive page) just like you can display the title using %title. This would then allow the next/prev links to be displayed without restricting to the current category, but the indication of what it belongs to.