post_count; if (!$count) $count = "no"; if (is_category()) { $theCatId = get_term_by( 'slug', $wp_query->query_vars['category_name'], 'category' ); $theCatId = $theCatId->term_id; } if (have_posts()) : ?>