Support » Fixing WordPress » Limit Categories in Widget Dropdown

  • I’d like to limit the categories visible in the category dropdown that goes in widgets. I understand that I have to tell wp to limit the list by category ID, and I found this on a blog post:

    <?php wp_list_categories(‘orderby=name&include=#,#,#’); ?>

    and the article said to put it in a text widget, but nothing shows. I tried it with and without unordered list tags as well, no luck.

    The site is on MAMP on my mac, so no URL listed here. I’m newish to php, willing to edit the child theme, but have hit a wall with where to go next. Any help is welcome!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Limit Categories in Widget Dropdown’ is closed to new replies.