WordPress.org

Ready to get started?Download WordPress

Forums

Links image AND text (8 posts)

  1. rustin
    Member
    Posted 8 years ago #

    I've done some searching and can't seem to find anything about this.

    Is there a way to convince 'wp_get_links' or 'get_links' to display BOTH the link image and link text in one <li>?

    I have been able to get it to display one or the other, but I want an image in front of the text.

    So far I've been able to put text into the description field and have it displayed next to the image, but that text isn't linked. The user has to click the image.

  2. OnSeduction
    Member
    Posted 8 years ago #

    I think you would have to do this through a plugin.

  3. rustin
    Member
    Posted 8 years ago #

    Any chance you know of a plugin that would do it. I have no idea how to make them.

  4. rustin
    Member
    Posted 8 years ago #

    On the get_links entry in the codex it says this.

    echo
    (boolean) Display links (TRUE) or return them for use PHP (FALSE). Defaults to TRUE.

    I'm guessing this means that I can use it to display the links, but I don't know anything about php. Anyone feel like teaching me a bit? Am I even on the right track?

  5. OnSeduction
    Member
    Posted 8 years ago #

    If you know nothing about php things might be more difficult ofcourse. If you plan to do more stuff like this yourself I suggest you take a crash course like the ones you'll find on the web.

  6. rustin
    Member
    Posted 8 years ago #

    OnSeduction, thanks for the suggestion. This is really the only think I need to solve. do you think this is the ticket for doing what I'm looking for?

  7. OnSeduction
    Member
    Posted 8 years ago #

    I think some basic knowledge op php will come in handy later too. And for your problem, I don't know what the output is from the get_links when returned for php use. But I don't think it will be that hard to create what you like.

  8. aylia
    Member
    Posted 7 years ago #

    Has anyone found a solution to this? I have been searching and searching, but it seems like the links area is a bit neglected.

Topic Closed

This topic has been closed to new replies.

About this Topic