Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Currently I am using <!--nextpage--> to split a post into multiple pages, but I would like to change from Pages: 1 2 3 4 to Next Page and Previous Page links similar to what you see on this multipaged post

In my single.php I have:

<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'pearl' ), 'after' => '</div>' ) ); ?>

How can I change this to a next and a previous button?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Use the 'next_or_number' parameter:

wp_link_pages( array ( 'next_or_number' => 'next' ) );

See the Codex for details.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.