[resolved] Hiding title, ul, li in a bookmark string that limits amount of links shown (2 posts)

  1. jessica
    Posted 7 years ago #

    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?

  2. jessica
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic