'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(); if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'large'); $url = $thumb['0']; } else { $url = ''; } 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()); } ?>