Help building array hierarchically with taxonomies (to get posts)
I made it ! This is the final code that returns a hierarchical array based on taxonomy. public function return_all_tax_objects() { $obj_term_posts = array(); // GET FLAT LIST OF TERMS BELONGING TO THE POST foreach ( $this->return_object_terms() as $obj_term ) { // IF TERM HAS A PARENT if ( $obj_term->parent ) { unset ( $keys … Read more