This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Next Page, Not Next Post

ཞིབ་བརྗོད།

Next Page, Not Next Post is a very simple plugin that creates navigation between sibling pages.

This plugin gives you two new functions, next_page_not_post($anchor_text, $loop, $sort) & previous_page_not_post($anchor_text, $loop, $sort). Each function has three simple options.

  1. Anchor Text – Either set the anchor text manually or use the page title. Use %title to use page title with other strings. Defaults to page title, just leave blank for that.
  2. Looping – Link the first element to the last and the last to the first, or not. Defaults to not looping. Set to true for looping, cousins for cousin based navigation and cousinsloop for cousins navigation that loops.
  3. Get Pages – This is used to determine how to sort your results. Use the documentation at Get Pages to find all available options here. Defaults to menu_order ascending.

SHORTCODES You can use [next_page] and [previous_page] shortcodes within your page content. Supported options are ‘anchor’, ‘loop’ and ‘getPagesQuery’.

More documentation for Next Page, Not Next Post on BinaryM.com

སྒྲིག་འཇུག

  1. Upload next_page_not_next_post.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php echo next_page_not_post(''); ?> & <?php echo previous_page_not_post(''); ?> in your templates
  4. See our site for more examples

FAQ

None at this point. Contact us if you have any and I’ll add them here.

གདེང་འཇོག

2017 ལོའི་ཟླ 7 ཚེས 7 ཉིན།
I was happy to find this solution!
2016 ལོའི་ཟླ 9 ཚེས 30 ཉིན།
Have been looking for something like this for ages. Ignore the out of date notice on the Wordpress website, this plugin is excellent if you want next previous links for Pages (and not posts). The loop parameter even offers a ‘cousins’ feature which allows the next/prev links to traverse child pages with the same grandparent!
2016 ལོའི་ཟླ 9 ཚེས 3 ཉིན།
So Easy to use. Helped me a lot and saving me a lot of time!
གདེང་འཇོག 12 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Next Page, Not Next Post” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།