'post', 'post_status' => 'publish', 'paged' => 1, ); if ( absint( $client_category ) > 0 ) { $client_args['cat'] = absint( $client_category ); } // Fetch posts. $the_query = new WP_Query( $client_args ); ?> have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>