• Quick question about styling the output of wp_list_bookmarks.

    I have my blogroll displayed as inline, with each entry separated by a comma. So:

    Blogroll
    Site 1, Site 2, Site 3, etc.

    I had the comma put in after each entry by entering the string ‘after=, ‘ within the ().

    What I want to do, however, is have the last entry drop the comma. I looked through the codex on variables for wp_list_bookmarks and couldn’t find anything. I’m not even sure it’s possible, but I thought I’d ask.

    I guess I could just add a comma after each entry from within the admin page and leave a comma off for the last entry, but that seems a bit cumbersome.

    Any ideas? Thanks!
    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try using: wp_list_bookmarks(‘between=,&any other paramaters you would like to set.);

    More here.

    Thread Starter alexlr

    (@alexlr)

    That works perfect. Thanks.

    Thread Starter alexlr

    (@alexlr)

    Spoke too soon. Didn’t clear my cache when I looked at the site and wasn’t paying close enough attention at the last entry on the roll.

    The between tag only affects what is placed between the name/image and it’s description. Since I don’t use or want descriptions, it makes no difference what I put in the between string, since it won’t show up (even if I have show_description turned to True, since there isn’t a description, it doesn’t seem to want to add that comma).

    Any other ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question on styling the wp_list_bookmarks output’ is closed to new replies.