Computer Science Mojo

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




Post

How to use single page pagination in Wordpress

Category: posts     Tag:
By: David     On: Mon 17 October 2016      Pageviews: 10

Wordpress has a simple pagination system built in.

Reading

1. In the page or post

  • use the tag <!--nextpage--> to seperate pages
first page stuff
<!--nextpage-->
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(); ?>