The function you want is get_the_terms
.
$terms = get_the_terms( get_the_ID(), 'equipment_type' );
if ( $terms && ! is_wp_error( $terms ) ){
foreach ( $terms as $term ) {
echo $term->name;
}
}
Related Posts:
- Custom post type single-{custom}.php not working
- Disable single pages and archives and keep preview
- How to check the terms in single custom post type template
- Single Template that can be applied only via URL
- How do I display tags for a custom post type single page?
- Not Able To Render Single-CustomPostType.php File
- single-{post_type}.php not working
- Get term name without a foreach loop
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- get_the_terms child terms for current post/custom post only
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- How to display category wise posts on seprarate template
- Custom Taxonomy as checkbox or dropdown
- What are the differences between custom post type and custom page templates?
- WP insert post and custom taxonomy
- Templates for Custom Post Types and Custom Taxonomies
- Add links to post categories and taxonomies in wysiwyg link modal?
- Query multiple taxonomy in Custom Post Type
- automatically create taxonomy with same name as post title
- Separate Custom Post Type Taxonomy by Comma
- Display “Post 2 of 4” on single post page?
- Get child terms of current term of the current post
- Allow duplicate slugs for posts on Custom post type in different categories/taxonomy?
- Custom Taxonomy Breadcrumb Navigation
- Remove “-2” from a Toolset Types URL with the same post name
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- WordPress import not importing custom taxonomy
- Make custom post type display as a page
- Ordering Custom Post Types with WP_Query
- Taxonomy structure of Sport site
- Is it possible to make tag archive page specific to Custom Post Type?
- Multiple portfolios with one custom post type?
- Custom Post Type and Taxonomy combination
- Custom post type custom taxonomy archive page name
- How to show the archive / post type description on Single templates
- How can I move a custom taxonomy and its data from one post type to another?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Posts from all the categories are being displayed instead of particular category
- Get next and previous 3 posts in a term in single post page
- Custom post type templating problem
- Custom Taxonomies not appearing in Admin
- search also in taxonomy, tags and custom fields
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Which post does a taxonomy term belongs to?
- Custom Post Type – No Results Found
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- CPT’s with landing page instead of archive – Url Rewrite?
- How to make front end form only accept certain values
- How to produce a sub-page-system in WordPress
- WordPress custom taxonomy template not working
- Custom post type pagination 404
- Associate page w/ specific single post template?
- Custom Taxonomy not displaying all post
- How to Display Posts From Category Within a Custom Taxonomy?
- Many to many to many custom post relationships
- Iterating through Object Array to customise display of full custom taxonomy for custom post type
- How to filter a custom post type by custom taxonomy without 404
- When I choose category from dropdown then everything working fine.But in backend it checked only child not parent [closed]
- Get child categories of custom taxonomy category?
- Check category_name or taxonomy slug for a Custom Post Type?
- Function to erase every post from a taxonomy
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- How to display list of custom post taxonomy terms and their posts (if any)?
- List taxonomies by post id
- How do i display all categories of a custom post type and have respective page for them?
- Show Custom Post Type based on Category on Archive Page
- Get all posts for custom taxonomy term
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- posts_per_page is not working by term
- Filter Custom Post Type Posts by Taxonomy
- How to display only child category post in related posts in custom post type?
- Insert custom taxonomy into category query
- % encoded URL giving 404 error in WordPress
- CPT: multiple loops with different terms
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- 404 error next-page [2] PageNavi custom type taxonomy
- Custom taxonomy archive slug overwrites static page
- Slugs on hierarchical taxonomies
- Group based routing and administration
- WordPress query posts by custom post type not workng
- Get posts of an specific term of a custom taxonomy
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- Custom post type AND custom taxonomy are not connected
- Loop with Custom Post Type and Taxonomies
- Single page archive – get coresponding taxonomy and terms
- How to assign custom post template to its custom taxonomy terms
- Excluding top level from taxonomy and post loop
- Displaying custom post types with taxonomy
- Get a list of categories ids
- Using one custom taxonomy.php for two custom taxonomies?
- Add taxonomy to custom post type archive
- Custom taxonomy archive not showing posts of certain child taxonomies
- posting twice from an array?
- Custom taxonomy labels won’t display
- Custom post type with custom taxonomy
- How do i get the taxonomy term name on the CPT archive page?
- Custom Post Type urls not working
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu