When you register a custom taxonomy make sure to set show_in_rest
to true
. This way the taxonomy will show in the REST API which is what Gutenberg uses to get the data.
Then you can use the selector:
wp.data.select("core/editor").getCurrentPostAttribute("my_taxonomy");
Related Posts:
- Custom taxonomy terms not showing as list Gutenberg Editor
- How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method
- Add a term to list in block editor taxonomy sidebar
- Custom taxonomy terms not showing as list Gutenberg Editor WordPress
- custom taxonomy not showing in Gutenberg
- Getting taxonomies associated with a specified post type
- Updating a custom post type’s custom taxonomy in a custom editor block
- Gutenberg Block Editor – Create block with dynamic content
- Add Gutenberg editor to edit taxonomy (category) page
- Get term name from term ID?
- Can custom taxonomies be displayed inside of a custom meta box?
- Front End Post Save Child terms
- Display child taxonomy until the last child
- Taxonomy slug by term ID
- URL rewrite rules for multiple taxonomies query
- Best practices for complex taxonomies
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Pros and cons of using [taxonomy name] in place of [category name]?
- How to display and use all existing tags at my write-post-at-frontend-panel?
- How to use create_term, edit_term, delete_term actions?
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How to output the taxonomy term name in a widget
- is there any limit of length on creating custom taxonomies?
- custom post type category page
- Advanced custom fields – taxonomy terms images [closed]
- Is It Possible To Have Shared WordPress Custom Post Types?
- WPML Translating a term/taxonomy programmatically
- Display an image instead of tag name?
- How can I conditionally change the title of a taxonomy meta box?
- Set a taxonomy as private
- “show option all” on list categories doesn’t display taxonomy
- get_term_children returns WP_Error for custom taxonomy
- How can I add buttons to a custom column in the taxonomy table?
- Category taxonomy template not working for custom post
- JSON API – search by custom taxonomy
- ‘Show on screen’ for custom taxonomies does not save
- Displaying terms by first letter
- get_category_link returning page URL
- Same taxonomy for different object types
- Enable the admin to sort custom taxonomy
- Show preset taxonomy description
- Translating a custom taxonomy
- Show all post of taxonomy on base taxonomy URL
- Taxonomies for custom post types
- Taxonomies image
- Howto control custum taxonomy order?
- How do I modify taxonomy term slugs dynamically?
- Redirect on saving term at custom taxnomy
- Pagination on Custom Tax Pages Removes Spaces from Query Vars
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- get_terms not returning any custom taxonomies
- Custom taxonomy not appearing in menu administration panel
- Does using custom taxonomy is more CPU efficient than using meta_data?
- WP REST API – get custom taxonomies based on terms & filter
- Using WP_Query and Query_post for the loop?
- Multiple Custom Taxonomy Dropdowns Lists
- How to display a custom taxonomy without a link?
- Get post count for current custom taxonomy
- How to show post list based on taxonomy term?
- Double slash in the_terms URL
- Using custom taxonomy when registering a new custom post type
- How to call a custom taxonomy term name inside a function?
- Get custom taxonomy name (not the term) in custom post
- How to add custom content to custom taxonomy
- query to use to link to taxonomy single page
- Fix Custom Taxonomy Display two times on each call
- Update Custom Taxonomy Value for a post based on custom date field
- Display Child Categories of Current Post ID
- Taxonomies specific to Page attribute template
- Saving custom taxonomies to post as checkbox on frontend
- How can I show links for custom posts group by taxonomy current term and sub-term?
- Show custom taxaomy as a product meta
- Taxonomy page loading wrong data
- How to use custom slug and custom templates for custom taxonomy?
- Keeping session instance of random display results over pagination breaks
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- Infinite Scroll appending Next Product Category Term pages
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Count tags for current post and save into custom meta field (and update it on post edit)
- Custom Taxonomy Not Being Recognized by is_tax()
- Custom taxonomy – no posts found
- How to truncate the description in the admin panel for a custom taxonomy
- Custom button on custom taxonomy listing page
- Custom Taxonomy Archives Page Errors
- customize taxonomy Page
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- How can I show custom field according to taxonomy?
- WordPress Taxonomy Menu
- Insert code on specific taxonomy archives
- Displaying Custom Taxonomy List Posts By Slug?
- get_term_children specific no id
- custom texonomy category child category list with parent head
- Taxonomy to display form after creation
- How home my code doesn’t display any feature image? Looping through post from a taxonomy and not getting feature images back
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?
- Best approach of implementing multi-select/checkboxes for taxonomies?