Title: WordPress &#8211; Custom Taxonomy &#8211; Customize Loop
Last modified: August 19, 2016

---

# WordPress – Custom Taxonomy – Customize Loop

 *  [Kruncher](https://wordpress.org/support/users/kruncher/)
 * (@kruncher)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-custom-taxonomy-customize-loop/)
 * I have a custom taxonomy and have created a custom template page “taxonomy-gallery.
   php”.
 * This pretty much does what I need, but I have one minor issue.
 * The loop is showing
 * [root category]
 * A
    –> B ——–> C —> D —> E F —> G
 * I need it to show only direct descendants:
 * [root category]
 * A
    F
 * I had a look at the query_posts function, but I cannot find a way to specify 
   only direct descendants.

The topic ‘WordPress – Custom Taxonomy – Customize Loop’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kruncher](https://wordpress.org/support/users/kruncher/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-custom-taxonomy-customize-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
