'post', 'posts_per_page' => 3, 'cat' => $business_insights_blog_category, ); $business_insights_home_about_post_query = new WP_Query($business_insights_home_blog_args); if ($business_insights_home_about_post_query->have_posts()) : while ($business_insights_home_about_post_query->have_posts()) : $business_insights_home_about_post_query->the_post(); $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id(),'medium_large' ); $featured_image = isset( $featured_image[0] ) ? $featured_image[0] : ''; if (has_excerpt()) { $business_insights_blog_content = get_the_excerpt(); } else { $business_insights_blog_content = business_insights_words_count($business_insights_blog_excerpt_number, get_the_content()); } ?>