I’m a bit unsure of you are actually asking, so apologies if I understood it wrong.
You can use get_category()
to get the category object and then just simply echo the $count
property value
$cat_count = get_category( 'ID OR ROW OBJECT' );
echo $cat_count->count;
Related Posts:
- List all subcategories from category
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- Remove parent category from permalink? Basically only have the child category?
- Filter by post category in Media Library
- Custom post types with their own permalink structure
- Display all posts in category, with specific tag posts at top
- Category page showing posts from all categories
- Changing the category permalink structure
- Moving Categories submenu to Media, but still opens Posts menu
- How to query all posts of a specific category, and any other category combination
- Page navigation within a category
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Page with the same name of a category
- How to make category RSS feeds show full content
- How to Check if a Child Category is Being Queried
- Creating Pages that show specific blog categories [closed]
- If a post belongs to two categories how do I choose the main category?
- Change post category based on latest posts views
- Attachment page per category
- How to get the depth of a category’s subcategories
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Code to pull in a PHP file named after the category ID
- in_category() works in single.php but not in page.php?
- functions.php conditional tag – only show in single.php?
- How do I create a way for users to assign categories to a post from the frontend of the website?
- Get categories from save_post hook
- Need to pull parent category and slug – only pulling daughter category
- Display children of the category a post is assigned to
- Random post + categories + tags
- Category location styling
- WordPress category page redirects in .htaccess not working
- Category archive rewrite rule to include category/subcategory?
- Displaying Categories and Sub Categories
- Change thumbnail image depending product category
- How to organize custom categories for filtering and selecting
- How to list categories within tags?
- get_next_post set the category
- Different menu navigation per category
- category doesn’t showing up in admin
- Get category URL knowing it’s id
- Change every post background based on category
- How could I know all the categories from post?
- How to make subcategory for custom post and and display?
- Create menu locations for each category in wordpress
- Get category’s parent category while using get_the_category_list
- How to make the ‘delete’ button inactive on some categories?
- Notice: Trying to get property of non-object in : custom fields category
- Array: What is this value based on?
- How to show the category of custom taxonomy
- Show testimonials based on post category matching product name
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- How to Link to Most Recent Custom Post of Same Term
- WP REST API not retrieving all categories
- Remove parent category from child/sub-category page URL in WordPress
- Category page not showing
- Add code to header based on category for specific posts?
- How to only show parent categories in sidebar
- Change RSS format for specific categories
- Displaying a custom field in Category Archives
- List post only under the category, exclude child category content
- Custom Portfolio Page
- Custom Fields Value As Taxonomy
- Detect category choice for posts with multiple categories
- Redirect Problems with Archive Page and GET variables
- Different size video display for category page (smaller) & detail page (larger)
- Adding tinymce to Custom Field boxes on Category edit page
- wp_list_categories : how do I sort by ID when IDs are not sequential
- How do you get sticky posts to work with categories?
- A different permalink structure for different categories
- How to make product image inherit from category image
- Is it possible to set up blog categories without changing permalink structure
- How to display categories image in loop homepage WordPress
- Display the articles of a category by role
- Remove “Category:” from Post meta
- How to “remove” WordPress categories UL and make the list loop in a horizontal line?
- How do I rewrite a single category link to point to a custom page?
- Add subcategories posts to the counts column at the admin’s categories list
- restrict category to only logged in User
- Default category isn’t saved in database
- Dynamically creating content on custom URL without getting 404
- Display related posts with same category or same tag return blank
- Get posts from 2 or more categories
- Category foreach Paging
- date.php shows all posts. how to fix it?
- Help with Wp + Mixitup code
- One category not displaying template updates
- How to display only category of blog without custom code?
- How to create a category or tag available exclusively to the admins and not to the users?
- Matching usermeta at registration to categories of content
- wordpress category.php query for featured news item, broken pagination and repeating posts
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- Form Value of drop down category + Translation of ‘show option none’
- Echo class depending on Parent category
- Query pages by category
- show posts from some category and sort by advance custom field
- How to show monthly archive posts?
- How to display posts by author in a separate page, other than author.php?
- One color to category link depending on category ID
- Show subcategories and hide posts or show posts if not exists subcategories