3, 'post_type' => 'post', 'post_status' => 'publish', 'paged' => 1, 'ignore_sticky_posts' => 1, ); if ( absint( $news_section_category ) > 0 ) { $layout_args['cat'] = absint( $news_section_category ); } // Fetch posts. $the_query = new WP_Query( $layout_args ); if ( $the_query->have_posts() ) : $category_title = get_cat_name($news_section_category); $category_link = get_category_link( $news_section_category ); ?>

have_posts() ) : $the_query->the_post(); ?>