'Основная номинация', 'translations' => 'Переводы', 'unranked' => 'Вне конкурса' ); $a = shortcode_atts( array( 'category' => 'КРИЛ '.date('Y'), ), $atts ); $category = $a['category']; $retval = ''; $args = array( 'numberposts' => -1, 'post_status' => 'publish', 'post_type' => 'game', 'meta_key' => 'nomination', ); foreach ($nominations as $nomination => $name) { $i = 1; // $args['category'] = $category; $args['meta_value'] = $nomination; $the_query = new WP_Query($args); if( $the_query->have_posts() ) { while( $the_query->have_posts() ) { $the_query->the_post(); $retval .= '
'.get_the_post_thumbnail().'
'. '