$culture, 'post__in' => (array)$content_id, 'posts_per_page' => 6, 'ignore_sticky_posts' => true, ); ?>

have_posts() ) { $content = array(); while ( $query->have_posts() ) { $query->the_post(); $detail['image'] = get_the_post_thumbnail_url( ); $detail['url'] = get_the_permalink( ); $detail['id'] = get_the_ID(); $detail['title'] = get_the_title(); $detail['content'] = wp_trim_words( get_the_content(), 20, ' ....' ); array_push( $content, $detail ); } wp_reset_postdata(); } if ( empty($content) ) { return; } $article_control = 1; $hentry_control = 0; for ($i=0; $i < 2 ; $i++) { if ( $hentry_control == 1 ) { break; } ?>

= count($content) ) { break; } } ?>