WordPress.org

Ready to get started?Download WordPress

Forums

images in posts_nav_link (6 posts)

  1. Joebar
    Member
    Posted 9 years ago #

    Is there a way to use next/previous images instead of text with posts_nav_link (or some kind of plugin)?

    Couldn't find anything searching here or google for the past 20 minutes. Best I could find was a post navigation image plugin, but I want to be able to use next/prev images throughout my index, archives, etc..

    Thanks!

  2. Joebar
    Member
    Posted 9 years ago #

    nobody?

  3. Joshua Sigar
    Member
    Posted 9 years ago #

    You probably can do something like this.
    <?php
    posts_nav_link(' ',
    '<img src="images/prev.jpg" />',
    '<img src="images/next.jpg" />');
    ?>

  4. Joebar
    Member
    Posted 9 years ago #

    Yea? Seemed too obvious to work ;) Thought those fields were for text only -- will have to give it a shot later.

    thx

  5. Joebar
    Member
    Posted 9 years ago #

    Just wanted to check back in to say that this does indeed work... Maybe it oughtta be mentioned in the codex?

  6. moshu
    Member
    Posted 9 years ago #

    Being a community project - feel free to add this piece of info to the relevant place :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags