WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar links - description before link (6 posts)

  1. pcmt
    Member
    Posted 8 years ago #

    For each external link in the sidebar, I'd like the link description to be shown before the actual hyperlink instead of after. Is this complex to do, or is there a simple way? (I'm using get_linksbyname in WP 2.0.1)

  2. MichaelH
    Member
    Posted 8 years ago #

    You'll likely need to 'roll your own' so to speak.

    Here's some help in that direction:
    Template_Tags/wp_get_links#Include_Before_and_After_Text

  3. pcmt
    Member
    Posted 8 years ago #

    Thanks. That's what I suspected... will have a go.

  4. MichaelH
    Member
    Posted 8 years ago #

    You might also take a gander at your wp-includes/links.php file for how the links functions work...

  5. pcmt
    Member
    Posted 8 years ago #

    Thanks again, and yes, I've been looking at that file most of the day. That's an option, but I would prefer a solution that doesn't mean changing the core files (if possible).

  6. pcmt
    Member
    Posted 8 years ago #

    Actually, that was quite straightforward (edit wp-includes/links.php). If anyone happens to want to place the external link description before each external hyperlink, let me know (via the contact page on the site in my profile).

    I don't think it can be done within the theme itself.

Topic Closed

This topic has been closed to new replies.

About this Topic