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 working with a blank theme and my nav.php looks like this

<div class="navigation">
<div class="next-posts" style="float: left;"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="prev-posts" style="float: right;"><?php previous_posts_link('Newer Entries &raquo;') ?></div>

My question is, how do I change the text links into image links?

share|improve this question
What sort of image links? Like just a standard image for each? Or you want it pulled from the actual post? If so, attached images, or featured image? – Rev. Voodoo Mar 28 '11 at 21:01
I have some buttons I want to use in place of the words "Older Entries" and "Newer Entries." So not ones pulled from the post, just standard images (ex/ blog.studentlife.uiowa.edu/svp/wp-content/themes/svp/images/…) – Maddy Mar 28 '11 at 21:16
Style them with CSS? – t31os Mar 28 '11 at 21:45
Explain further? I can make them background images but then how do I make them link? There has to be something simpler than using a plugin – Maddy Mar 28 '11 at 21:57
kinocreative.co.uk/hints-and-tips/… seems to be a good writeup, you can just add the links in as variables to next/previous posts link – Rev. Voodoo Mar 28 '11 at 22:37
up vote 0 down vote accepted

Maybe my (edu) plugin can help you understanding the ways that are possible to display pagination a little better.

I updated it after reading your Q. You can now more easily style your links. Just add your buttons as background-images to the stylesheet.

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.