';
}
endif;
if ( ! function_exists( 'news_vibrant_top_featured_content' ) ) :
/**
* header featured posts content
*
* @since 1.0.0
*/
function news_vibrant_top_featured_content() {
?>
$cat_value ) {
$checked_cats[] = $cat_value;
}
$get_checked_cat_slugs = implode( ",", $checked_cats );
$news_vibrant_post_count = apply_filters( 'news_vibrant_featured_posts_count', 4 );
$news_vibrant_posts_args = array(
'post_type' => 'post',
'category_name' => wp_kses_post( $get_checked_cat_slugs ),
'posts_per_page' => absint( $news_vibrant_post_count )
);
$news_vibrant_posts_query = new WP_Query( $news_vibrant_posts_args );
if ( $news_vibrant_posts_query->have_posts() ) {
while ( $news_vibrant_posts_query->have_posts() ) {
$news_vibrant_posts_query->the_post();
?>