Title: getting post children
Last modified: August 18, 2016

---

# getting post children

 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/getting-post-children/)
 * Does anyone know if there’s a template tag to get the children for a given post
   i.e. without running a DB query ala `$wpdb->get_results("SELECT * " .
    "FROM 
   $wpdb->posts " . "WHERE post_parent = $post->ID ");
 * I’m trying to retrieve the attached images for a given post.

The topic ‘getting post children’ is closed to new replies.

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 0 replies
 * 1 participant
 * Last reply from: [ifelse](https://wordpress.org/support/users/ifelse/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/getting-post-children/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
