category_count; $template = 'list-items-presentation'; $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'category_name' => $category ); $arr_posts = new WP_Query($args); $years = get_posts_years_array($cat_obj); if ($arr_posts->have_posts()) : ?>