Linchpin – PrevNextPage
Create next/previous links for pages. Adds the functions next_page_link() and previous_page_link() which links sibling to page(s). If your page doesn’t have a direct sibling the plugin will try to go out to the parent of the current page and get the parent’s next sibling. If enabled the plugin will
Create next/previous links for pages. Adds the functions next_page_link() and previous_page_link() which links sibling to page(s). If your page doesn’t have a direct sibling the plugin will try to go out to the parent of the current page and get the parent’s next sibling. If enabled the plugin will also loop from end->beginning and beginning->end.
This plugin is great for utilizing WordPress for presentations. If you create a set of pages. This plugin will cycle through them. Additionally you could utilize some javascript to create a timer to automatically go from page to page.
This plugin is based on ‘Next and Previous Page not Post’ by Matt McInvale. Although it’s gone through almost a complete rewrite from his release in 09. This plugin is a bit more optimized to take advantage of newer plugin techniques. Includes code from banesto as well regarding references to grandparent pages. Also added in additional features such as $args array for easier customization down the road. This plugin is great for utilizing wordpress as a presentation tool.
See the FAQs Page for Snippets and Examples
- 01Manually upload linchpin-nextprevpage.php to the /wp-content/plugins/linchpin-next-page-link-previous-page-link directory on your server (creating the folder if necessary. Or utilize the seach and install within the ‘Plugins’ menu of the WordPress Admin
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Place <?php echo next_page_link(); ?> or <?php echo previous_page_link(); ?> in your templates or utilize [next_page_link] [previous_page_link] shortcode or do_shortcode([previous_page_link]) ;
Frequently asked questions.
Examples
Function Options
next_page_link( $args:array ); previous_page_link( $args:array );
- ‘label’ => ”, // What ever you want your link to be labeled. If no label is given the url is utilized