3, 'offset' => 0, 'category' => '', 'category_name' => '', 'orderby' => 'post_date', 'order' => 'DESC', 'include' => '', 'exclude' => '', 'meta_key' => 'product_review_option', 'meta_value' => 'rate_stars', 'post_type' => 'post', 'post_mime_type' => '', 'post_parent' => '', 'post_status' => 'publish', 'suppress_filters' => true ); $posts_array = get_posts( $args ); $p_count = 0; foreach ( $posts_array as $post ) : setup_postdata( $post ); $p_count++; $review_image_id = get_post_thumbnail_id(); $review_big_image_path = wp_get_attachment_image_src($review_image_id,'block-big-thumb',true); $review_small_image_path = wp_get_attachment_image_src($review_image_id,'block-small-thumb',true); $review_image_alt = get_post_meta($review_image_id,'_wp_attachment_image_alt',true); // $product_rating = get_post_meta($post->ID, 'product_rating', true); // // var_dump($product_rating); // foreach ($product_rating as $key => $value) { // $featured_name = $value['feature_name']; // } if($p_count==1): ?>
<?php echo esc_attr($review_image_alt);?>

<?php echo esc_attr($review_image_alt);?>