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.