WordPress.org

Support

Support » Themes and Templates » [Resolved] wp_list_bookmarks issue (bug?)

[Resolved] wp_list_bookmarks issue (bug?)

  • What I’m trying to accomplish is having<li class="classname"> before every link.

    So I used…
    wp_list_bookmarks('orderby=rand&before=<li class=\"classname\">);

    I got back – <li class=\\\”classname\\\”>

    So I removed the “\”. The result was <li class=\”classname\”>!

    I tried eveything I can think of including

    <?php 	$pretag='<li class="snap_preview">';
    wp_list_bookmarks('orderby=rand&before='.$pretag); ?>

    I still get <li class=\”classname\”>.

    So wusup wit dat? Am I missing something or did I find (an admittedly esoteric) oversight?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Wow, usually I get at least someone chiming in… at anyrate I think I found the answer, don’t use any quotes. Seems that WP will parse it and add the quotes as needed. So obvious I couldn’t see it…

    Ok… wrong… it doesn’t add the quotes. >:(

    I finally ended up giving up on it. Which is ok, but it would be nice if these “list” commands could accommodate a class=”classname” attribute properly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] wp_list_bookmarks issue (bug?)’ is closed to new replies.
Skip to toolbar