Forums

WP-dTree
Custom post types (4 posts)

  1. tarheit
    Member
    Posted 6 months ago #

    Any thoughts of supporting custom post types?

    I changed wp-dtree-pge.php to do custom post types instead of pages simply changing get_pages to get_posts and adding 'post_type'=>$post_type,

    It seems to work great using wpdt_list_pages('post-type=myposttype') but of course I can't do both pages and custom posts at the same time. It shouldn't take a huge amount of work to duplicate the page stuff and make a separate set for custom posts.

    -Tim

    http://wordpress.org/extend/plugins/wp-dtree-30/

  2. ulfben
    Member
    Plugin Author

    Posted 6 months ago #

    Noted.

    Did you try applying this to the other types of trees? It seems to me a custom post type should be applicable to all other views - archives, categories and other taxonomies. The page tree is fairly limited for displaying posts, no?

  3. tarheit
    Member
    Posted 6 months ago #

    I haven't tried it with the other views, but many if not all would be applicable. I ended up using the modified page view because the custom posts I'm doing have a hierarchy and it works best for me to display them in a tree to show the hierarchy.

    I happen to be using the 'Custom Post Type UI' plugin for the custom post types, though there are others out there.

  4. MrJLC
    Member
    Posted 20 hours ago #

    Hi, just to resurrect this thread - is there anyway I can use this plugin in conjunction with WCK Custom Taxonomies (http://wordpress.org/extend/plugins/custom-taxonomy-creator/) ?

    Because when I use your widget 'wpd-tree taxonomies (beta), the select list 'show descendants of' is empty and the next select list 'only direct children of' only contains 1 option which is 'root (0)'.

    Any info much appreciated

Reply

You must log in to post.

About this Plugin

About this Topic