Support » Plugins and Hacks » [Plugin: Collapsing Categories] How to include Categories?

  • Resolved shafee85

    (@shafee85)


    Hi,

    I’m sure there is a simple solution for my issue.

    I have manually called the Collapsing Categories function on my sidebar. I need to be able to include a few selected categories only. However, i cannot seem to figure out how this include function works. For now i have excluded all unnecessary categories so that only the wanted ones are displayed.

    The code i have used is as follows,

    if (function_exists('collapsCat')) {
      collapsCat('animate=1&inExcludeCats=category1,category2,category3&expand=3&catSort=catId&showPostCount=0&showPosts=0');
    } else {
      wp_get_categories(your_options_here);
    }

    The developers site was not helpful to me, though it had stated the include function.

    http://wordpress.org/extend/plugins/collapsing-categories/other_notes/

    Can anyone please point out how i should enter the include category command?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Looks like adding inExclude=include will do that:

    collapsCat('animate=1&inExclude=include&inExcludeCats=category1,category2,category3&expand=3&catSort=catId&showPostCount=0&showPosts=0');

    Of course remember to set your inExcludeCats to the categories you want to include.

    Thanks again MichaelH. works like a charm. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Collapsing Categories] How to include Categories?’ is closed to new replies.