3, 'post_status' =>'publish', 'ignore_sticky_post' =>'true' ) ); $post_data[]= array(); /* Start the Loop */ while ( $w_featured->have_posts() ) : $w_featured->the_post(); $categories = get_the_category(); $post_data[]= array( 'title' => get_the_title(), 'thumbnail' => get_the_post_thumbnail_url(get_the_ID(), 'large'), 'cat_name' => $categories[mt_rand(0,count($categories)-1)]->name, 'content' => get_the_content(), ); endwhile; if($w_featured->post_count>1): if(class_exists('kirki') && $blog_related_post == true): ?>