WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Collapsing Categories] How to include Categories? (3 posts)

  1. shafee85
    Member
    Posted 4 years ago #

    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

  2. MichaelH
    Member
    Posted 4 years ago #

    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.

  3. shafee85
    Member
    Posted 4 years ago #

    Thanks again MichaelH. works like a charm. Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic