WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links - how make before and after tags work? (2 posts)

  1. bwooster47
    Member
    Posted 7 years ago #

    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?

  2. bwooster47
    Member
    Posted 7 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic