WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Links – how make before and after tags work?

[Resolved] Links – how make before and after tags work?

  • I saw at least two bugs reported on this – while the admin page offers fields to specify before and after tags for links, the actual get_links code completely ignores it.

    A comment in this bug:
    http://trac.wordpress.org/ticket/1816
    suggests this may never be fixed (so why then allow the admin pages to change this???)
    Another old bug:
    http://trac.wordpress.org/ticket/1042

    Is there some other workaround to make the links display honor the before/after tags?

    All I need is to have each link appear in a separate <li> </li>
    tag – even within a category (I’ve a single category for links).
    Or if that is not possible, would settle for a <br /> – a line break – between each link.

    Anyway to do this without having to hand-modify get_links or other functions?

Viewing 1 replies (of 1 total)
  • After fiddling around with the template file, figured this out.

    I did not realize that the theme file will override the admin settings.

    So, to fix this, all I had to do was to change my call to get_linksbyname to force the HTML/CSS tags I needed, which means the admin fields are ignored … now if I can just remember that next time I wonder about this problem!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Links – how make before and after tags work?’ is closed to new replies.
Skip to toolbar