0

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?

1 Answer 1

1

Use the 'next_or_number' parameter:

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

See the Codex for details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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