Title: parent taxonomy as loop parameter
Last modified: September 1, 2016

---

# parent taxonomy as loop parameter

 *  [petroglyphic](https://wordpress.org/support/users/petroglyphic/)
 * (@petroglyphic)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/parent-taxonomy-as-loop-parameter/)
 * I have a loop to displays events from the Tribe Events Calendar plugin posts:
   `[
   loop type=tribe_events taxonomy=tribe_events_cat term=community,featured tax_compare
   =and orderby=field_num key=_EventStartDate order=ASC field=_EventEndDate after
   =today]` Works great as long as none of the taxonomies have children. If one 
   of the taxonomies has children the loop returns nothing. Is this because tax_compare
   =and requires that a post belong to both of the listed taxonomies _and all of
   their children_? Is there any way to write this so it requires only that the 
   post belong to the specific listed taxonomies? There are a lot of terms in this
   taxonomy and it’s very helpful to have it hierarchical.
 * Thanks, Susan
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

The topic ‘parent taxonomy as loop parameter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [petroglyphic](https://wordpress.org/support/users/petroglyphic/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/parent-taxonomy-as-loop-parameter/)
 * Status: not resolved