Normally usage of get_term()
or get_term_by()
is pretty much clear cut. See the basic example below:
// ID is needed
$term_by_id = get_term( 12345, 'destination' );
echo $term_by_id->count;
// Or if you e.g. want use the name (or slug or id or term_taxonomy_id)
$term_by_name = get_term_by( 'name', 'greece', 'destination' );
echo $term_by_name->count;
Note: I said normally, because I don’t know anything about the plugin you are using.
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- How to Add Custom Taxonomy To Woocommerce Plugin
- How to get the posts of a custom taxonomy term
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- Remove Trash / Delete option for Custom Post Type / Taxonomy
- How to filter custom post types by custom category taxonomy
- Highlight menu item when on a custom post type?
- Custom Post Type Permalink For Parent/Child, 404 Page Not Found Error
- remove support for ‘Categories’ for a custom post type
- Hide child term posts on parent term pages
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Custom Taxonomy List links being re-written
- Want to filter only parent post in admin area
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Child and grandchild taxonomy listings – 404
- Limit taxonomy results to a single cpt
- Display custom taxonomy as dropdown list
- Automatically Add a Category to a Custom Post Type
- Associate Taxonomies Across Post Types
- Custom Permalink Tag breaks Pagination
- Query to change custom post type with specific category
- Custom Post Type and Custom Taxonomy Permalinks
- Relationship between two taxonomies and a custom post type [closed]
- Sharing a custom taxonomy with Multiple custom post types
- next_post_link on custom taxonomy
- Show Two custom Post type and their posts on category page
- How many Custom Post Types to register?
- Insert HTML inside link in a walker
- Change Permalink Structure for Tag.php template
- How to bulk copy custom fields between custom posts?
- get_attached_media() on author page not working
- CPT UI change custom taxonomy url
- Search / Filter posts on Title/Content OR Tags
- Show posts from two or more custom taxonomy terms
- Custom taxonomy and custom post type – wrong permalinks and template
- How can I make the slug of the taxonomy also the slug of the custom post
- How to list custom taxonomies in the back end
- How do I display the grand child items of a taxonomy term?
- Custom taxonomy returns 404
- How to get custom posts sub category link
- Top Level pages in wordpress giving 404, but child pages working fine
- Query posts with double taxonomy
- Loop to display custom post type from a custom Taxonomy
- Custom query – get_the_terms not work
- Creating two loops based on different logic
- How to select a template for a custom post type?
- category list with cutom post count
- Custom post type and taxonomy cross registration [duplicate]
- How to create a template to show child terms of a MAIN taxonomy
- Get Terms from Custom Taxonomy and Current Post
- Add filter to Admin list for all custom post types by their custom taxonomies
- Single.php for Custom Post Type > Taxonomy > Term
- Add the custom post term to the custom post title
- Display 3 recent posts from one taxonomy
- Display next 3 posts based on custom taxonomy
- Custom post types templates
- prevent sub categories to show up
- Display latest post of taxonomy
- Custom post type and multi taxonomies + customize url
- Custom taxonomy terms hierarchical navigation
- Is it possible to add the Gutenberg block editor to a custom taxonomy?
- What is the best way to structure posts for the same event happening in different years?
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- WordPress Custom Taxonomy – If not parent term
- Static Front Page not working for custom theme
- Dynamically Adding Posts of Post Type to A List
- Live search by custom tag
- Set a Default CPT taxonomy by taxonomy id
- Custom taxonomy terms registered not showing when added in child theme
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Show parent category and subcategory once in while loop
- I cannot display custom posts in custom taxonomy
- How to change URL structure for custom post type in wordpress? Custom taxonomy + custom Post name [duplicate]
- Custom taxonomy with custom post type template not showing
- Loop to display parent categories in custom taxonomy
- One-Time Script TimeOut for Large Data
- Not Able to List CPT Based on Taxonomy Term
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- CPT Efficient way to display posts from different categories with custom query
- Best way to group posts based on custom post type terms
- How to create default taxonomy term for a custom post type? [duplicate]
- Extensive search filtering and results->PDF in the front-end
- redirect old post type url to new structure url
- How to retrieve the permalink for a specific (custom) term?
- Values inside a custom field to determine which category posts to display
- title tag for custom post type remove taxonomy name from title tag
- Display and Allow users to edit their own profiles
- Remove custom taxonomy ‘post-type’ from post URL
- Create a page selector using taxonomies
- Advanced search form with filters for custom taxonomies and custom fields
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Custom My account page and custom page for editing posts
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Code to show related posts (custom post type and custom taxonomy/category) is messing with other code
- register_term_meta not working
- the_post_navigation in single page with multiple taxonomies