Title: [Plugin WP-dTree] – exclude categories in PHP
Last modified: August 19, 2016

---

# [Plugin WP-dTree] – exclude categories in PHP

 *  [jaysonbrown](https://wordpress.org/support/users/jaysonbrown/)
 * (@jaysonbrown)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/)
 * Hi,
 * Looking to use multiple tree’s throughout, sometimes for unique categories; would
   like to find away to include; “exclude=1,”
 *     ```
       <?php
                   if (function_exists('wp_dtree_get_categories')){
                       wp_dtree_get_categories();
                   }else{
                       wp_list_categories('show_count=1');
                   }
               ?>
       ```
   
 * I thought I could add it “wp_dtree_get_categories(HERE);” but… I was wrong.

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

 *  Thread Starter [jaysonbrown](https://wordpress.org/support/users/jaysonbrown/)
 * (@jaysonbrown)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/#post-1286909)
 * bump
 *  [stanbdb](https://wordpress.org/support/users/stanbdb/)
 * (@stanbdb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/#post-1286942)
 * hi jaysonbrown, i have a similar problem. i am using the same code snippet as
   you. i would actually like to pass a parameter like “child_of=4” to `wp_dtree_get_categories();`(
   similar to wp_list_categories tag). i examined the code of the plugin, and that
   doesn’t seem to be possible. i have to use multiple instances of category tree
   across the site, each one displaying subcategories of a given category. have 
   you had any luck in finding a solution? that seems to be a good idea for a feature
   request to the author anyway.
 *  [stanbdb](https://wordpress.org/support/users/stanbdb/)
 * (@stanbdb)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/#post-1286943)
 * [http://artdevivre.ehost.pl/?page_id=42](http://artdevivre.ehost.pl/?page_id=42)
   
   this is the website i’m working on. right now, the list displays all the categories
   of my website. on the page i sent, i only want a list of subcategories of ‘Kuchnia’.
   how can i do that?
 *  [ulfben](https://wordpress.org/support/users/ulfben/)
 * (@ulfben)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/#post-1286974)
 * Multiple instances are supported now. [http://wordpress.org/extend/plugins/wp-dtree-30/](http://wordpress.org/extend/plugins/wp-dtree-30/)

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

The topic ‘[Plugin WP-dTree] – exclude categories in PHP’ is closed to new replies.

## Tags

 * [WP-dTree 3.0](https://wordpress.org/support/topic-tag/wp-dtree-3-0/)

 * 4 replies
 * 3 participants
 * Last reply from: [ulfben](https://wordpress.org/support/users/ulfben/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-wp-dtree-exclude-categories-in-php/#post-1286974)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
