The final solution of plural and singular terms name is below.
Code
<?php $term_ids = wp_get_post_terms( $product->get_id(), 'variety', array('fields' => 'ids') );
echo get_the_term_list( $product->get_id(), 'variety', '<span class="posted_in">' . _n( 'Ποικιλία:', 'Ποικιλίες:', count( $term_ids ), 'text-domain' ) . ' ', ', ', '</span>' ); ?>
In my project is working correct 🙂
Hope to help anyone to fix this issue !
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
- Can’t get a custom template taxonomy page to display
- Display category posts grouped by taxonomy
- Creating a non-removable taxonomy term
- Can I turn off write-in tags/taxonomies?
- 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
- Displaying the Name of the Queried Taxonomy Term on a Term Archive Page?
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- get taxonomy terms for parent and child
- On Taxonomy Template page, want to add Post_Type
- Taxonomy query for children of parents
- 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?
- how to get title to custom tags page
- 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
- How to redirect custom post type archive to first term of associated taxonomy?
- 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?
- Refresh Taxonomies
- Get Bottom Most Level Taxonomy Terms?
- 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
- Share taxonomy between user and posts?
- How to determine the depth of a term in a custom taxonomy?
- How do I Use Multiple Loops with WP_Query?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- How to obtain the link/URL to the feed of a custom taxonomy?
- get_term_children doesn’t return an array of children terms
- Term count by user
- add taxonomy as one of menu items
- Creating a custom search form
- How to add contents of a custom field to a taxonomy term list?
- Google Map Shortcode for Custom Taxonomy/Post Types
- Querying two taxonomies
- How to target parent product category and its children using WooCommerce?
- Custom taxonomy query is empty. 0 = 1 in SQL
- How do you reorder the custom taxonomies on the right side of a custom post edit page?
- Query posts by taxonomy with current term
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- What is the most efficient way of implementing a notification system? [closed]
- Remove custom taxonomy column from my custom post type columns
- Retrieving only custom post types with two required terms (from diferente custom taxonomies each)?
- Get posts by Taxonomy without terms
- Is this the proper way to get a taxonomy description into a post template?
- Check if custom taxonomy has posts with get_categories()
- How to add images to taxonomy terms? [duplicate]
- Echo custom taxonomy slug
- Admin (All posts) stop responding problem
- Why get_page_template() doesn’t show taxonomy template file name?
- Remove a href from this code
- Adding a second custom taxonomy to a custom post type (both shown in its table)?
- custom post type, hide or disable the status line in publish meta box
- Get post terms from multiple custom taxonomies
- How to get attached image to taxonomy..?
- delete term from taxonomy and assign in new one
- How to get list of only custom taxonomies?
- Template file renders on local install, not on web
- Replicate Drupal form options as taxonomies?
- Listing only custom post types with two required categories?
- custom taxonomies label in hebrew
- Amend taxonomy to search in wordpress admin
- Unique taxonomy for post
- filter for thumbnail not working for custom taxonomy term
- Problems using get_the_terms in a plugin
- Custom taxonomy only gets saved in quick edit
- add pagination in wordpress page template
- How do I show the parent term on a custom taxonomy template (not the ID)?
- Display taxonomies for custom post type
- register_taxonomy_for_object_type (images) : how to use it ?
- Custom Taxonomy – Dropdown
- How to show selected check box vendors on front end home page?
- WordPress tag or archive php file customization
- custom taxonomy don’t return a value
- If page is a taxonomy do X, if is a term, do Y
- Where to put a migration script to switch post information?
- Custom taxonomy list in two columns
- Gravity prerender taxonomy [closed]
- One taxonomy template for all categories?
- Get post terms with hierarchical relationships
- Using wp_query is it possible to orderby taxonomy?
- Error in Custom Taxonomy UI
- Remove ‘portfolio’ from URL
- Add Gutenberg editor to edit taxonomy (category) page
- post_type_link not working for posts without terms
- Why my archive title isn’t showing?