• nikos

    (@nikos)


    Hello, how can I exclude subcategories from showing. I want to have only my main categories show up and I have this code:

    <?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 0, 1, 1, 1, 0,”,”,”,”,”) ?>

    I can’t find the correct point in this code to change so only main categories appear.
    Any help would be greatly appreciated.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Chris_K

    (@handysolo)

    list_cats for documentation. Looks like the 11th parm is a true/false to show children.

    So, try something like
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 0, 1, 1, 0, 0,'','','','','') ?>

    moshu

    (@moshu)

    HS meant this link Template_Tags/list_cats 🙂

    Chris_K

    (@handysolo)

    Doh. Thanks Moshu. Darned shortcuts got me.

    Thread Starter nikos

    (@nikos)

    Whataver the setting, it always shows ALL categories (and sub as well, like they’re equal with main categories).

    Doesn’t seem to work this parametric setting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude sub categories’ is closed to new replies.