Splitting Post Into Multiple Pages in WordPress

One powerful but rarely used feature in WordPress is the paginated post feature. To split a blog post or a page into multiple sections, simply add this comment where you want the page to split:

<!--nextpage-->

Do note that not all themes support this feature. If your theme does not show pagination, simply add the following to your index.php, single.php, and page.php of your theme files (it must be placed within the WordPress loop):

<?php wp_link_pages(); ?>

Just as with any other element of WordPress, you have the ability to customize its layout with CSS. You can see our own pagination customization on our Windows 8 Screenshot post.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>