Segmenten

'page', 'numberposts' => 4, 'post_status' => 'publish', 'post_parent' => $parent // any parent ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $post) { ?>