Title: Node grouping based on custom fields?
Last modified: August 31, 2016

---

# Node grouping based on custom fields?

 *  [ixodie](https://wordpress.org/support/users/ixodie/)
 * (@ixodie)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/node-grouping-based-on-custom-fields/)
 * Does anyone know how to group child nodes into a single branch based on custom
   field values?
 * [https://wordpress.org/plugins/wp-dtree-30/](https://wordpress.org/plugins/wp-dtree-30/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ulfben](https://wordpress.org/support/users/ulfben/)
 * (@ulfben)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/node-grouping-based-on-custom-fields/#post-7148307)
 * You would have to edit the plugin source code. There’s a ton of files but the
   general pattern is pretty simple. Each tree type goes through the same stages:
 * Parse Settings / Context -> build enormous database query -> parse results into
   a useful data structure (basically a huge array) -> pass to wp_dtree_build to
   generate and cache the output.
 * So look at the (multi-stage) database queries I use to grab all the data and 
   figure out how you need to change that to look for whatever fields you have.
 * Let me know when you’ve got something working!

Viewing 1 replies (of 1 total)

The topic ‘Node grouping based on custom fields?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-dtree-30_fcfcf8.svg)
 * [WP-dTree](https://wordpress.org/plugins/wp-dtree-30/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dtree-30/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dtree-30/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dtree-30/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dtree-30/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dtree-30/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ulfben](https://wordpress.org/support/users/ulfben/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/node-grouping-based-on-custom-fields/#post-7148307)
 * Status: not resolved