Separate Next/Previous page links?
-
Sorry if I’m being a bit dense here but this seems like it should be so obvious and I can’t figure it out! ??
At the bottom of my archive page, I have links to ‘Older Posts’ and ‘Newer Posts’. It’s pretty simple:
<div class="pageNav"> <div class="navLeft"><?php next_posts_link('Older Entries', '0') ?></div> <div class="navRight"><?php previous_posts_link('Newer Entries', '0'); ?></div> </div>
My navLeft and navRight classes float left and right respectively and each have their own arrow-style background image in CSS. I want to do something similar for navigation in multi-page posts but I can’t find a function that will allow me to do it.
wp_link_pages has various options but will always, it seems, print the ‘Page 1’, ‘Page 2’, ‘Page 3’, etc. or ‘Next Page’ and ‘Previous Page’ links in the same block. There doesn’t seem to be any way to separate them.
I essentially need previous_page_link and next_page_link functions which work in the same way as posts navigation but no such function seems to exist. I’m surprised these two functions work so differently.
Any help would be greatly appreciated.
- The topic ‘Separate Next/Previous page links?’ is closed to new replies.