WordPress offers two types of pagination: archive pages and post pagination.
Types of Pagination
- Archive Pages:
Use the `the_posts_pagination()`function to display pagination navigation to the next and previous sets of posts.- This function has been supported since WordPress version 4.1.
- https://developer.wordpress.org/reference/functions/the_posts_pagination/
- Post Content:
Use the `wp_link_pages()`function to display page links for paginated posts (i.e., posts containing one or more<!--nextpage-->quicktags).- https://developer.wordpress.org/reference/functions/wp_link_pages/
Shifter-Recommended Tags, Plugins, or Themes
If your theme or plugin complies with WordPress coding standards, it is highly unlikely that you will encounter any issues. Pagination is straightforward and works without problems in most cases.
The following tags and plugins are recommended:
the_posts_pagination()wp_link_pages()- WP-PagiNavi plugin
Unsupported Tags or Plugins
If you are using or developing custom pagination, we recommend testing its functionality. Shifter offers a free trial, so please test it beforehand.
The following may not be supported:
- Functions created independently by users or developers, or fully customized functions.
- Themes or plugins that use the original functions listed above.
Development, Testing, and Debugging
To develop or debug themes and plugins for Shifter, we strongly recommend using Shifter Local. Shifter Local provides an environment that matches our versions of PHP, HTTP gateways, and other components.