Custom post types (5 posts)

  1. tarheit
    Posted 3 years 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.



  2. ulfben
    Plugin Author

    Posted 3 years ago #


    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
    Posted 3 years 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
    Posted 3 years 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

  5. AlexGoodall
    Posted 2 years ago #

    I've just been testing out the Taxonomy widget, and it's "almost" perfect!

    I'm planning on have a number of different custom post types, and I want them all to be subject to one (or more) taxonomy.

    When I assign the taxonomy value "Thing" to one normal Post and one item of a particular Custom Post, your taxonomy widget correctly identifies that there are 2 items within Thing, but when I open up Thing in the widget, it only displays the Post item: the Custom Post item doesn't appear.

    I'm not a PHP expert, so I haven't attempted to modify the code, but I'm hoping this is a simple fix.

    Am I right?

    If I end up using this plugin, it's definitely worth a book or two!



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-dTree
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic