WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

Does anyone know how to customize wp_link_pages() so that <!--nextpage--> will show like "<< previous" and "next >>" links instead of "Pages: 1 2 3 "?

Note:- i used "<!--nextpage-->" in my Wordpress tinymce editor for pagebreaks between long pages.

share|improve this question

You can use next_or_number param of wp_link_pages to achieve this.

From Codex:


(string) Indicates whether page numbers should be used. Valid values are:

  • number (Default)
  • next (Valid in WordPress 1.5 or after)

Then you can use nextpagelink and previouspagelink params to modify these links texts.

So doing it like this should do the job:

    wp_link_pages( array(
        'next_or_number' => 'next',
        'nextpagelink' => 'next &gt;&gt;',
        'previouspagelink' => '&lt;&lt; previous'
    ) );
share|improve this answer

Your Answer


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.