WordPress.org

Forums

How can I use an image as page/post navigation? (3 posts)

  1. gendem
    Member
    Posted 5 years ago #

    I would like to use an image instead of the text returned by previous_posts_link(). Is there a way to do this?

    ...Mike

  2. gendem
    Member
    Posted 5 years ago #

    For clarification, the issue I am having is that I can't include php statements in the previous_posts_link() call. And without this ability, I can't create the url to point to the theme folder in a portable way.

    In other words

    previous_posts_link('<img src="get_bloginfo(stylesheet_directory)/arrow.png">');

    doesn't work. I can't be the first person to ask for this, but I ahve yet to find a solution.

    ...Mike

  3. herveg
    Member
    Posted 4 years ago #

    Mike, I have the same question. Did you find a solution ?
    ...Herve

Topic Closed

This topic has been closed to new replies.

About this Topic