• Resolved jonimueller

    (@jonimueller)


    We’re getting ready to do a site launch in the next 24 hours and this page is misbehaving.

    https://blusd.mytestbed.com/links/

    I’ve got a separate links.php page with this code in it, to call all the bookmarks except “Member Bands” which is ID 2.

    <?php wp_list_bookmarks('exclude=2'); ?>

    We also have a separate Member Bands page template with this code, which shows only the links in the “Member Bands” category, but with descriptions and some other formatting. It’s working beautifully. CRAP!! Now neither template is working! Arrhghgh!

    The code:
    <?php wp_list_bookmarks('include=2,title_li=&show_description=true&between=: '); ?>

    The page:
    https://blusd.mytestbed.com/member-bands/

    What am I doing wrong with the Links page? Do I need to specifically INCLUDE all the other categories except ID 2?

    That’s gonna be a big PITA when it’s all said and done, since there will eventually be a lot of categories and these folks shouldn’t have to go in and add another cat ID to the “include” list each time they create a new one.

Viewing 16 replies (of 16 total)
  • Don’t make the same mistake as I was….I couldn’t figure out the category ID number. Looking at the admin panel for Bookmark Categories, I saw the number 6, so was using that number. Duh – that was the number of bookmarks under that category.Finally figured that out, but couldn’t see anywhere that told me what the category ID number was. Finally noticed if I clicked it the category ID displayed in the URL.

    Voila – exclude_category now works! So I will admit having a dumb moment in hopes it helps everyone else struggling with this!

Viewing 16 replies (of 16 total)
  • The topic ‘wp_list_bookmarks Not Honoring My Exclude Category’ is closed to new replies.