Support » Fixing WordPress » Sidebar links – description before link

  • 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)

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Thanks. That’s what I suspected… will have a go.

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

    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).

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar links – description before link’ is closed to new replies.