WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.