If your page doesn't have direct sibling the plugin will try to go out to the parent of the current page and get the parent's next sibling.
See FAQs Page for Snippets and Examples..
Or utilize the seach and install within 'Plugins of WordPress Admin.
Activate the plugin through 'Plugins in WordPress.
'getPagesQuery => 'sort column=menu order&sort order=asc, 'link class =>., class given to the anchor for styling or js library 'link id =>., id given to the anchor for styling or js reference 'echo => 'true, 'direction =>., 'next, 'prev..
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Fixed bug where link class was creating attribute with no value of the defined link class instead of creating value for the class attribute..
Fixed bug where the next and previous links would show even if the current $post ID was the first or last page.
Base plugin off of the Next and Previous Page Not Post plugin by Matt McInvale..
Optimize method for getting the next and previous page..
Read more