• When creating a new category widget for the sidebar I’d like the option of customizing which items appear in the category list. Right now when you add a category you can give it a unique name but it clones all the items in the first category and there is no way to add or exclude items, which seems to defeat the purpose of having up to 9 category widgets (or if there is a way to customize them, please let me know). Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter videosc

    (@videosc)

    It took me awhile but I found this page:

    https://codex.www.ads-software.com/Template_Tags/wp_list_categories#Display_or_Hide_the_List_Heading

    It describes how you can remove certain categories from your list. This would seem to indicate the logic behind giving the option to include up to 9 category lists; in theory you should be able to create multiple category lists but then go in and exclude certain categories so you ultimately get several “groups” of categories with their own heading. The thing is, I don’t see how to do this. Here’s what I did so far:

    I created these six categories for a test and assigned them to posts:
    California
    Florida
    London
    Liverpool
    Montreal
    Toronto

    I wanted to display these cities as three groups of categories with a heading for the home country:
    UNITED STATES
    — Florida
    — Texas
    UNITED KINGDOM
    — London
    — Liverpool
    CANADA
    — Toronto
    — Montreal

    I created three category widgets and named each with the home country. This resulted in all six cities showing up under three category lists on my blog.

    I looked in each php script in the theme editor to see if I could spot the one that was calling for the three country categories so I could exclude certain cities from each, but I could not find this anywhere.

    My next step is to look at the widgets.php file within WP but I thought I’d post here to see if anyone has a better idea.

    Thanks!

    Thread Starter videosc

    (@videosc)

    I think I can mark this as resolved (but I don’t see how to do that).

    I ended up just using a text box widget with HTML code to list my categories the way I want and this is working fine. It was a much simpler and faster solution than breaking into the scripts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Widget Options’ is closed to new replies.