Anyone who knows how to show the previous and next page number? I've been searching a tutorial for this but I can't seem to find one. Basically, I want my pagination to be like this:

for example, user is currently on page 2 so the page navigation should be like this:

← 01 previous / 03 next →

Thank you.

1 Answer 1


How about using the built-in function?

previous_post_link( '%link', '' . _x( '&larr;', 'Previous post link', 'twentyten' ) . ' %title' );
next_post_link( '%link', '%title ' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '' );

More information on pagination is available here:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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