Ich verwende den folgenden Vorlagencode, um Anhang-Links anzuzeigen: $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $main_post_id ); $attachments = get_posts($args); foreach ($attachments as $attachment) {