Try this suggestion:
$user_id = get_current_user_id(); // Get current user Id
$user_groups = wp_get_object_terms($user_id, 'user-group', array('fields' => 'all_with_object_id')); // Get user group detail
foreach($user_groups as $user_gro)
{
echo $user_gro->name; // Get current user group name
echo $user_gro->taxonomy; // get current user taxonomy
}
Related Posts:
- How to manage the links of a new taxonomy
- Need a simple but complete example of adding metabox to taxonomy
- Custom Taxonomy WP_Query for All Terms in a Taxonomy?
- How does Woocommerce store variation attributes, and how can they be retrieved per-variation? [closed]
- Using pre_get_posts to set posts per page, how do I?
- wp_set_object_terms() Fails to Set Terms
- Better way to enforce category hierarchy in post_categories_metabox?
- List all taxonomy terms / Show links if posts are attached, else names
- How to overwrite a specific parameter in a core taxonomy?
- How to set a Preset category for custom post types?
- Set default (auto) slug prefix for Tags
- Update all posts at once
- Retrieve taxonomy terms in order of their post’s date?
- List post from current taxonomy children
- Count argument in get_terms has no effect on ouput/doesn’t work
- Get the term for an taxonomy archive when the term has no posts
- orphaned taxonomy terms remove by sql query
- has_term not working
- How to make checkboxes from taxonomy terms?
- WordPress built-in method to extract array of term IDs?
- How to Retrieve a Taxonomy Term’s ID?
- How to output hierarchical taxonomy path, with only the deepest term assigned?
- Using pre_get_posts for taxonomy post count
- Set attachment tags from attachment’s custom field data
- is_taxonomy is deprecated. What’s the alternative?
- Set multiple Post Terms in same Taxonomy
- WordPress Customizer – pass setting value into another control to live update drop-down choices
- Share the same comments between more pages
- How to add a class to term
- Return user taxonomies
- custom post type and taxonomy url rewrite without tax-name
- Show child terms of current term of the taxonomy
- conditional statement based on terms
- Display specific taxonomy
- How to get custom field value in frontend for taxonomy
- Terms not appearing in wp_dropdown_categories
- Why does WP_Query strip colons from tag names?
- Syntax help needed: Taxonomy Query
- Help Understanding Taxonomy
- How to make tags show up in search results?
- Expired event redirect to parent category
- Different permissions for same type of post
- custom taxonomy terms archive page
- Remove Category When Post Transitions from Status Private To Public And has Specific categories already?
- SQL query joining on taxonomy tables not returning what I would expect
- List sub-taxonomies from current taxonomy
- Retrieve list of taxonomies in json
- Match and Merge Terms in Different Taxonomies
- Taxonomy.php error appearing in the header of my site [closed]
- Counting posts by certain author with custom taxonomy
- How can I query all post with currrent taxonomy term?
- Can you have seperate sidebars for multiple taxonomy archives?
- Display check marked taxonomies as drop down menu
- Displaying Custom Taxonomy Children in Dropdown
- Custom Taxonomy With Author?
- Exclude taxonomy term from list of current taxonomy terms
- Tags hierarchical
- Display List of All Taxomony Terms of A Post
- Exclude taxonomy Query if post_type
- Rewrite slug for WP core taxonomies
- wp_insert_term doesn’t want to enter its data into custom taxonomy
- $_POST sometimes empty even though isn’t when using edited_[taxonomy] hook
- ACF Taxonomy in Loop
- Is it possible to prevent the deletion of taxonomy by detecting $_GET request
- How to show only first, second, third Custom taxonomy conditionally
- Showing related post for custom taxonomy
- Noticed updating taxonomy terms take a long time and run out of memory
- How do I export categories, site stats, comments and posts from wordpress to excel
- List of all posts from current category on single portfolio page
- How to disable the use of certain words in categories
- What is the use case for sharing a term between multiple taxonomies?
- How do i get the link of the assigned taxonomy term?
- Make taxonomy query dynamic
- How to show children terms even if they are empty
- Add pagination to for each taxonomy terms
- show recently added tags to tag cloud
- WordPress get parent category taxonomy
- How to exclude post-tag taxonomy for a custom post type?
- “If an object equals a term id then return the term name”
- Should i use usermeta or taxonomy (or even custom taxonomy)?
- How do I echo all of my taxonomies?
- taxonomy tags..it is not working
- Get posts with Taxonomy term meta
- Custom Post Type Archive with Dynamic Taxonomy Filtering
- What is the earliest hook you can piggyback on to check terms/taxonomy for a collection view?
- Why do my offline development site and online live site behave differently?
- 2 Different Taxonomy with Hierarchical Term Relationship
- WordPress bool(false) means taxonomy compare not working [duplicate]
- How to change value in wp-include/taxonomy.php without exchanging the WordPress-core
- Random post order and taxonomy filter
- Store members in custom taxonomy or native user?
- Remove title attribute from tag cloud widget [duplicate]
- ?taxonomy_name=slug shows both posts and pages
- Echo used hierarchical taxonomies parent name
- Show min and max taxonomy values
- Taxonomy template for all taxonomies attached to certain post type
- Show Taxonomy Child Terms (name and image) on Parent Term Page
- Can One Taxonomies Terms be Ordered by A Seperate Taxonomy?
- Hiding a tag from display
- taxonomy change to post/page type