• HI All,

    figured out how to exclude categories from displaying on my custom side bar with this code

    wp_list_categories(‘orderby=name&show_count=0&exclude=4,5…&title_li=<h2>Apparel</h2>’); ?>

    But how do I include only.. for example doing this means that each time I create a new category i have to come back to this code and say exclude 4,5,6….

    where as is there a way where I can “include only?”

    ie
    wp_list_categories(‘orderby=name&show_count=0&INCLUDEONLY1,2,3=&title_li=<h2>Apparel</h2>’); ?>

    That would be awesome!

    Thanks

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

    (@chowpay)

    Ah yes nm got it..

    so simple it hurts

    just go

    wp_list_categories(‘orderby=name&show_count=0&include=1,2,3=&title_li=<h2>Apparel</h2>’);

    any only categories 1, 2 and 3 will ever display on that side bar.

    If theres a plug in for this that would be awesome…

    Thread Starter chowpay

    (@chowpay)

    How do you exclude / include by slugs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom side bar include only certain categories’ is closed to new replies.