And if you want to check if current post has more than one term in given taxonomy (it’s not very clear in your question and this version makes much more sense for me…), then function get_the_terms
will come handy:
$terms = get_the_terms( $post, $taxonomy );
echo ( count($terms) > 1 ) ? 'Destinations' : 'Destination';
Related Posts:
- get_the_term_list without links in 3.1
- Custom columns on edit-tags.php main page
- get_term_children for immediate children only (not grandchildren)
- Custom taxonomies capabilities
- Creating a non-removable taxonomy term
- Is it possible to use one slug for Multiple Taxonomies?
- Is it possible to add taxonomies to user profiles?
- Get terms from multiple taxonomies
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- Is it possible to sort the post based on a custom field?
- How do I get terms as a list for a specific post?
- get taxonomy terms for parent and child
- On Taxonomy Template page, want to add Post_Type
- Separator for multiple terms
- The next_posts_link() show me a aditional page in blank
- Help building array hierarchically with taxonomies (to get posts)
- Removing the base “Author” or changing it to something else. is it possible?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- Next and Previous links on a single taxonomy page only link to same term
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- How can I get WP to build a feed based on multiple taxonomy terms
- Get custom taxonomy description with paragraph tags
- Getting the selected terms for custom taxonomies in the editor
- Change permalink of post if it belongs to custom taxonomy
- Get pages only with a specific taxonomy
- Set custom post type terms by id without knowing taxonomy
- How to filter terms from a custom taxonomy by a usermeta value on all screens and templates
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- How do I display a list of posts under all hierarchical children of the current taxonomy?
- Use get_the_terms to list subcategories of custom taxonomy
- List child terms if parent but show nothing on children
- Locale switching with a “language” taxonomy
- query_posts and custom taxonomy posts order
- Modify “View” in admin panel for custom taxonomy
- User: Editor, can’t see edit taxonomy screen
- How to get my post title to work with an apostrophe (‘s)?
- How do I exclude posts from custom taxonomy from a custom post type archive?
- Manipulate WP Query using a custom post type and multiple tax_query taxonomies
- Hide product categories and taxonomy terms in menu if empty
- Using custom taxonomy to tag posts for inclusion in slider
- Custom taxonomy forms for user profile
- Is it possible to store Json data in post_meta and manipulate
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Filtering posts by an already registered taxonomy
- Search Tool only refreshes Page without showing results
- Add Taxonomy Subcategory To Permalink
- Updating / Saving items generated by wp_terms_checklist on frontend
- Term and sub term from custom post type query [closed]
- Customizing Primary Menu to include custom taxonomy description
- Rewrites with hierarchical taxonomies in permalink
- Rewrite rules for varying nested terms of custom taxonomy
- Copying taxonomy term to custom field
- Custom Taxonomy with tax_query
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- Get posts in certain Taxonomy terms for the current page url
- Exclude taxonomy term from all loops, but having it on widget
- Get all attachments by custom taxonomy – term
- Get terms that don’t belong to current post with a shortcode
- saving meta/custom field to tag
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- View the complete list of a taxonomy in the navigation menu
- Correctly order the hierarchy of custom taxonomy when displaying terms
- Changing input type from text to multi select dropdown – skill taxonomy
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- What’s the best way to add taxonomy’s image in 2017?
- Archive page for custom taxonomy grouped by month
- Add custom taxonomy as a css class
- Wp_query…a type of term a different div
- Taxonomy page shows category in title
- Replace taxonomy term with an image in a custom loop
- Need to display custom taxonomy on single page – not working
- Show single Child Category on Custom Post
- Only display latest custom taxonomy post
- unable to save custom taxonomy terms in a custom-built metabox in wp-admin
- How to group non-hierarchical tags?
- Multiple Drop-Down custom taxonomies search
- How to combine taxonomies into URL?
- Issue adding custom taxonomies to custom post type (PHP)
- Taxonomy URL rewrite whilst keeping filtered posts?
- Add terms to a taxonomy archive from within the same taxonomy
- Fill New Taxonomies
- How do I show the parent term on a custom taxonomy template (not the ID)?
- Display taxonomies for custom post type
- Custom Taxonomy – Dropdown
- How to show selected check box vendors on front end home page?
- Need help understanding a rewrite with multi-level taxonomy
- custom taxonomy don’t return a value
- Where to put a migration script to switch post information?
- Gravity prerender taxonomy [closed]
- Advanced search: roles and multiple taxonomies
- One taxonomy template for all categories?
- Get post terms with hierarchical relationships
- Removing fields from category/taxonomy edit form
- Error in Custom Taxonomy UI
- Remove ‘portfolio’ from URL
- Hide empty categories on widget