How about this…
add_filter('get_the_categories', 'wpse50876_the_counter');
function wpse50876_the_counter($cats){
foreach($cats as $cat){
$cat->cat_name = $cat->cat_name.'('.$cat->count.')';
}
return $cats;
}
Try it…
Related Posts:
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Combine two taxonomies in a hierarchical tree
- Get current category details the user is currently on in category.php
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- Get Default Post Category From Settings
- Get the number of posts in a named category, outside the loop
- Test if post has a category
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- Display list of Sub-Categories and the posts they contain, within one main Category
- Create subdomains for tags and categories
- Categories – create a new separate set right after the default?
- How to get this only in small letters (lowercase)? [closed]
- Highlight current category in wp_list_categories
- How to totally get rid of Category in my blog?
- Is there a function to cause empty categories not to show in menus?
- How to have Multiple Archives Widgets, one archive widget per category (in a different page)?
- exclude category from WordPress Form function
- WP 3.0.5: Best way to add custom metaboxes for post categories?
- How do I view a feed consisting of posts from multiple categories?
- Render Selected Categories in Admin Edit Post Screen differently
- How can I convert some categories to a custom taxonomy?
- Previous/next link to post in category, NOT tag?
- Any way to assign Post Categories and Tags to Links?
- How to add custom script to the particular Product Category page
- get_cat_ID() not wokring
- Get all sub-categories of a parent category
- How to create a page that shows posts from multiple categories
- How to get category name from URL and pass to a template
- Problem with wp_create_category
- Displaying multiple loops based off of category
- Display Categories, Sub-categories, and Sub-sub-categories on separate pages
- WooCommerce IF statements not working
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- Redirect category to url with /category
- I Cannot Create New Category
- Archive.php filtered by pre-determined category
- category filter doesn’t work in WPML
- Hide woocommerce category name from specific pages
- There any way to get de percentage of number of post by user and category?
- How to display categories which contains particular tag?
- I cannot add more Categories to my menu
- category permalinks
- Filtering *out* a taxonomy from the admin post list
- category image taxonomy
- Categories overview that links to page displaying posts
- Displaying Child Categories in carousel
- Removing Uncategorized on post save if other category present?
- Is there an easy way to get a list of Category IDs?
- Hidde certain category from post meta
- How to customize my category pages
- How to add a post without assigning to a category?
- List all posts in a category with query_post() function
- Remove “Browsed by Category” from Category Page
- How to display parents category and child category separately for a specific post?
- Get a count of how many times a term or a category is used in posts
- Not showing list if there aren’t any categories to display
- Exclude a category name using cat name
- How to list all categories and their IDs using SQL query?
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Get custom title if category
- Apply WordPress function on specific woocommerce product categories only
- display specific category on page
- Simple way to style posts of a single category differently in the loop and in single
- show WordPress categories with different Structure
- How to let the user create a selection of categories via the backend
- Display subcategories selectbox on each category page
- Media (images, videos, etc.) not showing on Category page
- Problem with Custom Post Type Categories
- Display post thumbnail for specific category outside the loop
- PHP dynamical conditional post display
- wp_dropdown_categories initial value
- Displaying categories in different template problem
- List taxonomy terms assigned to a post in hierarchical view
- How can I display image child category in parent
- Limit categories to hierarchal depth of 2
- Custom Taxonomy Isotope Grid – Filter Buttons Not Working
- ADD DYNAMIC attribute for category to accordion
- Get_term_meta() does not work with pre_get_posts()
- Unable to add multiple categories to a post in WordPress
- How to display custom fields as table in Woocommerce
- make color of headline depend on category?
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Menu with category 2 category combined
- Displaying Category in sidebar post widget but not in the loop on home
- how to display categories for a specific post?
- Media Categories as Classes on WordPress Gallery Shortcode
- Add category links?
- show posts found in multiple categories via category_name query string?
- Category Template for Custom Post Type
- get categories the post was in and just been removed from
- Loop through posts of CatA and store value of CatB in separate array
- Display last postings of 5 categories on homepage
- How to enable admins/editors to set a featured image for specific category?
- Category that can hold only specific number of post
- How to add the sidebar in all category page
- Having Trouble With get_category_by_slug In a Custom Function
- WordPress category gives 404 after moving to a different domain
- How to load/include category templates based on conditionals?
- Why does WordPress append a bullet to my category tag?