• Does anyone know what code i can insert here to iether oxclude certain categories or only include certain categories?? i have this code inserted into a template and i only want it to display a certain categorie

    here is the code i need changed

    <h2>Categories</h2>

    <?php
    if (function_exists(‘wp_dtree_get_categories’))
    {
    wp_dtree_get_categories();
    }
    else
    {
    wp_list_categories(‘show_count=1’);
    }
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • This line is from a plugin:
    wp_dtree_get_categories();
    so will need to read their instructions.

    For this:
    wp_list_categories(‘show_count=1’);
    you should just read the documentation – scroll up > Docs.
    Template_Tags/wp_list_categories

    Thread Starter heyjoe79

    (@heyjoe79)

    so because it is a plug in you can’t ad a normal code to it? there is no instruction for the plugin to do what i need.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code to exclude categories’ is closed to new replies.