Just replace tax_name with the desired taxonomie
$tax = wp_get_post_terms($post->ID, 'tax_name');
echo $tax[0]->slug;
Related Posts:
- meta_key & meta_value not working with get_pages and custom taxonomy
- Hide product categories and taxonomy terms in menu if empty
- How to add Post Format Taxonomy Archive page in the menu?
- How to get all taxonomies which can be added in menu?
- Tell the difference between a term and page when they have the same ID
- Corrupted nav-menu?
- Remove taxonomy widget from “PAGE” post
- Taxonomies on Pages with Custom Formatting
- Unregistered taxonomy apears still as emtpy filter list
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- Child Pages and Custom Taxonomies
- How to add images to taxonomies?
- Can you add the visual editor to the description field for custom taxonomies?
- Check if a post has any term in this custom taxonomy?
- Custom taxonomy hide meta box but show in menu
- display posts with same taxonomy term
- Taxonomy menu with post count and multiple parents
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Remove Category description textarea
- Archive template for taxonomy terms
- Custom metabox for menu administration page?
- How can I set up a category “overview” page?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Possible to register multiple custom taxonomies in one function?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Function to limit the number of posts in taxonomy.php
- User role permissions based on taxonomies
- WP Query with custom taxonomy
- How to prevent posts duplicating when viewing a custom taxonomy term
- How to display custom taxonomy in multiple columns?
- Custom taxonomies making WP very slow – Way to fix?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Sorting taxonomy columns by meta value numeric
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- Is it possible to create exclusive custom taxonomy?
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- Date range filter for manage posts list on edit.php
- Get Current Custom Taxonomy ID by Post ID
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy archive showing no results
- I used the Tax-meta-class by bainternet but i still can’t get it to display any of the results.
- Autogenerate Front End Form Field With jQuery
- Changing taxonomy term by slug (wp_update_term)
- Controlling Taxonomy Category listings to hide and unhide specifics
- Rewrite Rule Working for all but one of the taxonomies created
- Taxonomies on custom taxonomies
- How to join result of different taxonomies?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- Replace taxonomy permalinks
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Multi-select field for Taxonomy can’t save the value
- How to Display a menu only if it has Posts in Custom Menu?
- Create custom taxonomy and Display in metabox dropdown
- How to create a custom taxonomy using a shortcode?
- Override Taxonomy Template
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- Adding a custom taxonomy to “nav_menu_item”
- Filter through custom taxonomy with an array of taxonomy IDs
- Taxonomy archive template that shows posts from more than one taxonomy
- Taxonomy Overview Page?
- Order taxonomy terms wordpress
- Can You Build Page Templates Without Extra Files
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- Tracking the name of a custom taxonomy
- new custom filed not showing in taxonomy
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- custom taxonomies menu
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Dropdown (with onChange) with custom taxonomies
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- How to use two same taxonomy in same post differently?
- Sort Taxonomy List by Custom Values
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- How to display custom taxonomy
- Get the original menu item name string instead of the label
- Taxonomy term breadcrumb; how?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- Advanced AND tax_query in sidebar with 2 taxonomies
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Get custom taxonomy term url on archive page
- Display woocommerce product_cat child terms with thumbnails
- query grandchildren taxonomy terms
- Adding new terms to custom taxonomy
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?