Support » Fixing WordPress » Hiding title, ul, li in a bookmark string that limits amount of links shown

  • Resolved jessica

    (@kerflop)


    I am using this string:

    <?php wp_list_bookmarks('category=42&orderby=rand&order=ASC&limit=7&title_li='); ?>

    to call only 7 links from my blogroll category (42) at a time. I want to strip the title and the ul and li as well, but it isn’t working. It is calling only 7, but it is displaying the title and bullets. Have I constructed my string incorrectly?

Viewing 1 replies (of 1 total)
  • I managed to figure it out by cobbling together some advice from other threads:

    <?php wp_list_bookmarks('category=42&orderby=rand&order=ASC&limit=5&categorize=0&title_li='); ?>

    This string restricts the amount of links shown to 5 (I changed it from 7), randomly displays the links, and also strips the title “Blogroll” and the ul, but not the lis, so I hardcoded the uls back in and styled them according to my taste.

Viewing 1 replies (of 1 total)
  • The topic ‘Hiding title, ul, li in a bookmark string that limits amount of links shown’ is closed to new replies.