• 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

    (@jaysonbrown)

    bump

    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.

    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?

    Multiple instances are supported now. 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.