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

I'm having an issue with wp_link_pages tag. I want to list the number of pages of each post with 'next' and 'previous' links that are two image arrows.

To better understand the problem I'm having, please see this URL: http://next.lab501.ro/smartphone/nokia-n9-meego-to-go/2

At the top of the body you'll see a list of pages of that post. In the left and right side of the pagination there are two green arrows, I want them to function as links to 'nextpagelink' and 'previouspagelink'.

I've read the wordpress codex regarding wp_link_pages and 'styling page links' but I still can't figure this out.

share|improve this question
up vote 0 down vote accepted

adjust the 'nextpagelink' and 'previouspagelink' arguments for wp_link_pages() to have a css class you can style

$args = array(
    'nextpagelink'     => '<span class="next">' . __('Next page') . '</span>',
    'previouspagelink' => '<span class="prev">' . __('Previous page') . '</span>'

then in your css you can style those spans to use your arrows as background images.

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.