You mean get_the_terms()?
<?php
$terms = get_the_terms( $post->ID, 'block_type' );
foreach($terms as $term) {
echo $term->name;
}
?>
Or have I simplified this too much?
Related Posts:
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- get terms that have post with custom post type between 2 values
- Show ACF field from custom taxonomy and display on the single template
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Linking three taxonomies with ACF
- Get Custom Field Values by Another Custom Field in WordPress
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Create 3 Level Relations with ACF and WordPress
- get_posts of Custom Post Type AND Custom Taxonomy
- Retrieve value of a category’s custom field
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- Query Custom Post Type Taxonomy term with multiple parameters
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- How to group posts and get a mixed posts and groups view?
- How to define the template for custom posts?
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- ACF – Retrieve custom taxonomy from a relationship field
- Custom front-end form for adding post – Category problem
- Create loop from selected terms in ACF taxonomy field
- Sort custom posts by date and then by taxonomy
- Display Custom Field or Custom Taxonomy in front page /post/product
- WP_Query not using custom taxonomy categories on custom post type
- If ACF Post Object post has custom taxonomy term…
- Some posts not displaying by taxonomy term
- Taxonomy shows up twice on Custom Post Type
- How to display custom post type pagination buttons when processing AJAX request
- Display custom tax in “while” loop
- Best way to have one product in both rental and sale parent category
- How to query posts by meta keys AND under specific category?
- How to query the content of a specific custom post type?
- Advanced Custom Fields: query posts filtered by multiple field values
- ACF Relationship: Group posts by parent category term, then child [closed]
- Custom taxonomy meta fields
- Custom Sort Order for Custom Post Type Taxonomy
- Filter by custom field in custom post type on admin page
- Create a shortcode to display custom post types with a specific taxonomy
- importing third party json feed as custom post type [closed]
- List the categories under custom taxonomy
- Populate Taxonomy from Custom Posts
- How to replicate some of Drupal Views functionality in WordPress?
- Archive page with multiple taxonomies rewrite
- Show related posts on single page by custom taxonomy on custom post
- Exclude from search all custom posts which are NOT in a taxonomy term
- Sorting for each custom taxonomy
- WP Rest API Querying Custom Posts by ACF fields
- Dynamic variable for custom taxonomy in loop?
- wp_insert_post custom taxonomy
- Append taxonomy terms as class names in markup?
- Want to turn WordPress into a paid subscription directory
- Why is my custom loop not filtering correctly nor paginating?
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom post types with custom directories
- How to output wordpress custom tags separated by comma?
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Custom Taxonomy Permalinks Redirection
- shortcode to show custom post types by category
- Single Template that can be applied only via URL
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Use Custom Post Type archive page for the taxonomies term archive page
- Display a grid of taxonomy terms at root taxonomy page
- Nested Custom Post Type or Custom Post Type Parents?
- Display Custom Taxonomy Alphabetically
- posttype/taxonomy/term archive page 404 error
- How to add attributes to taxonomies that may be different from post to post?
- Custom post type, permalinks, taxonomies and blog posts
- Taxonomy in URL
- Display related custom taxonomy posts in sidebar
- Sort a custom post with ACF: Date Picker & Display Featured!
- Get taxonomy term by slug in post on archive page
- Query not work for current taxonomy
- Create short URL with auto 301 redirect
- Hide custom post type from search based on custom taxonomy
- Custom Post type date archive for custom taxonomy
- get custom post type value in header.php [closed]
- Replicating category/location page heirarchy
- WordPress custom permalink and archive link for custom post type
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Non-permalink custom taxonomy not found
- Looking up custom taxonomy IDs by name
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Change dynamically the dropdown list value
- WP Query tax_query not returning posts
- How to show terms used only for particular custom post type. Filter creation perpose
- How should i name the .php file to show custom posts under a taxonomy’s term?
- How to hook save-post function to use taxonomy term in post-slug?
- Custom post type and taxonomies structure
- Form to custom post type and custom taxonomy
- Displaying custom posts in categories
- Best approach to allow front-end display of posts’ reviewers?
- Query pulling all taxonomies, not one I am specifying
- template structure for CPT not clear
- Trouble showing showing Posts related to custom post type and taxonomy.
- Add 2 Taxonomies to Custom Post
- update custom taxonomy with Ajax in edit.php file [duplicate]
- How to change order of custom post types. I want Featured post to come first
- Hide custom post type slug url from search engine [closed]
- How to develop Knowledge center in WordPress Website