Computer Science Mojo

~ David's Notes on coding, software and computer science


How to use single page pagination in Wordpress

Category: Web     Tag: WordPress  
By: David     On: Mon 17 October 2016     

Wordpress has a simple pagination system built in.


1. In the page or post

  • use the tag <!--nextpage--> to seperate pages
first page stuff
next page stuff

2. Define the pagination in the page template

  • Have one at the start and at the end of the page
<?php wp_link_pages(); ?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>