The function you are looking for is get_term() http://codex.wordpress.org/Function_Reference/get_term
and the code would look something like this:
$term = get_term( 1, 'category' );//for example uncategorized category
echo 'count: '. $term->count;
Related Posts:
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- Breaking Bootstrap Grid at Post Count with Tax Terms
- Count tags for current post and save into custom meta field (and update it on post edit)
- Trying to Display Number of Posts in Term
- How to only list the child terms of a taxonomy and not their parents?
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- How to display custom taxonomies in posts?
- Filtering custom taxonomies
- Allowing specific users to only add posts using certain custom taxomy terms
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Get only the first term by taxonomy
- Hook to process a new taxonomy tag before it is created?
- Removing taxonomy base using WP rewrite
- get_terms() returns an empty array
- Scheduling posts to update once per day with wp_cron
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- How to remove parent taxonomy name from the title generated by wp_title()?
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Adding session variable and/or cookie based on user-selected input
- How to Reverse Taxonomy Order
- Check whether a custom taxonomy term has published posts?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Sort custom taxonomy terms order by both count and name
- How to Query Database for posts with certain Taxonomy Term
- Taxonomies in URL
- Check if term is in a taxonomy?
- How to show only terms by id or slug on edit-tags.php (custom taxonomy manage page) for a custom taxonomy
- Woocommerce: How to change the add to cart text in a certain category? [closed]
- get_term and get_term_by return null or false, even though term exists
- one term two taxonomy’s?
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- quey posts from different categories with taxonomy
- How to create pagination for custom taxonomy in WordPress
- Order by taxonomy Value [duplicate]
- Checkbox onclick filtering on the same page
- Get parent and children taxonomy in different dropbox
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- Remove categories from post edit page, but keep in sidebar?
- How to set taxonomy hierarchical level to 2?
- Custom Taxonomy Not Working When added to WordPress Search
- Custom taxonomy terms in the admin site is not saving for widget
- Widget dropdown always displays first option
- Passing form inputs into multi-taxonomy query
- Custom Taxonomy Tag Cloud?
- Make child taxonomy categories use a set template
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Foreach loop duplicating a taxonomy thumbnail image
- Load a certain functions file for a certain taxonomy
- one post per term taxonomy
- Custom permalink accept any params
- How to count other posts not having specific taxonomy terms?
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Add file attachments/meta to a custom Taxonomy
- Displaying user selected custom tags/taxonomies on the front-end
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- Running a function only once when a taxonomy term is changed
- Taxonomy or Custom Field
- making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
- Displaying my custom taxonomies in a using the_term_list()
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- is there a way of getting term children that only shows those from two taxonomies
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to create filter’s for custom taxonomy page
- get_queried_object not work in taxonomy page
- How to create a non removable taxonomy term?
- How to show category list in WordPress
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- transfer two existing taxonomy terms into one custom metabox
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Modify title of custom taxonomy archive page
- Catchable fatal error: Object of class WP_Error
- WordPress custom taxonomies new/edit post autocomplete
- Templates files for custom post type with custom tags
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- taxonomy query on front page
- Pagination with custom query (not using posts)
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- Get Posts with matching lowest taxonomies
- How to randomise a custom taxonomy tag cloud
- query posts returns 10 records
- Remove Tag Cloud Words from Custom Taxonomy
- How to add/enqueue Custom CSS for a custom taxonomy page?
- Best approach of implementing multi-select/checkboxes for taxonomies?