ID, false); $args = array( 'include' => $gallery['ids'], 'orderby' => 'post__in', 'order' => 'ASC', 'post_type' => 'attachment', 'posts_per_page' => -1); $entries = get_posts($args); $fields = get_post_meta($post->ID); $hauptbild_text = (isset($fields['wpcf-hauptbild-text'])) ? trim(apply_filters('the_content', $fields['wpcf-hauptbild-text'][0]), "\n") : false; get_header(); ?>