[resolved] wp_list_bookmarks issue (bug?) (3 posts)

  1. Ted Thompson
    Posted 9 years ago #

    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?

  2. Ted Thompson
    Posted 9 years ago #

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

  3. Ted Thompson
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic