Support » Plugin: WP-dTree » Posts tree by taxonomy

  • Hi,

    First of all, archive display works great… but I don’t need it.

    I want to display posts of a CPT in a taxonomy tree exactly as you can see on your screenshot for categories. I have two custom taxo and each posts have this two taxo filled with one term. For example in videos CPT, I have a first taxo – type – : movies, series or short film and a second taxo – style – : Sci-Fi, drama or comedy.

    First of all, I just tried to display my posts with a single taxonomy :

    $args = array(
      'taxonomy'     => 'type',
      'orderby'      => 'name',
      'show_count'   => 0,
      'hierarchical' => 0,
      'hide_empty'   => 1,
      'useicons'	 => 1,
      'cache'        => 0
    );
    wpdt_list_categories( $args );

    I see only taxonomies, not posts, and taxonomies are display as post (no folder icon). wpdt_list_taxonomies give the same result.

    I also try wpdt_list_taxonomies with posttype = my_CPT_name but result is empty. And with wpdt_list_categories, tree display WP categories (which are not link to CPT specified).

    I search in wpdt_get_taxonomies_defaults() but it’s not very explicit and I don’t find documentation about it.

    If you have clues…

    Thank you.

    https://wordpress.org/plugins/wp-dtree-30/

  • The topic ‘Posts tree by taxonomy’ is closed to new replies.