You’re doing everything fine you just need change 'post_type' => 'post'
from post to your custom type.
Related Posts:
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get value in custom field with taxonomy [closed]
- Get second level terms of custom taxonomy
- Modify Term Update Redirection
- How to get first post in a category of a custom taxonomy
- How to get the singular name of a custom taxonomy?
- You are not allowed to manage these items – bug introduced in 4.4
- Get taxonomy name of current post
- How to hide custom taxonomy archives same way as hiding custom post types?
- Archive template for taxonomy terms
- pre_get_posts OR relation between taxonomy and author
- Custom Fields and performance
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- get_the_term_list without specific category
- Add Category Name to REST API
- Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
- Set posts_per_page in WP_Query for custom taxonomy
- drop-down list taxonomy problem
- Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?
- How do I get WordPress URL rewrites into Sitemap?
- How to display custom taxonomy in multiple columns?
- 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]
- Custom taxonomy query not working with switch_to_blog
- How can I check if a taxonomy has more than one item?
- Metabox to list/store a certain type of post tag
- Get Current Custom Taxonomy ID by Post ID
- Custom fields to taxonomy
- How Can I Change a Taxonomy URL Based On The Originating URL?
- How To Assign “Taxonomy per Taxonomy”?
- How to add a Rewrite Rule / Category Structure
- Selecting all posts from the children of a particular parent taxonomy
- How to have two different versions of a tag/category/taxonomy archive page?
- Rewrite Rule Working for all but one of the taxonomies created
- How to get all taxonomies which can be added in menu?
- WordPress Tag or Custom Taxonomy Return All Posts if has that Word in Post Title
- display one post out of each custom category (aka “term of custom taxonomy”)
- Get custom taxonomy for visual composer shortcode but not working?
- Display value of custom field of custom taxonomy in single post?
- Custom Taxonomy and Rewrite URL
- WordPress Custom post query sorting does not work
- group posts by taxonomy terms
- List related terms + taxonomies
- Multi-select field for Taxonomy can’t save the value
- How to Display a menu only if it has Posts in Custom Menu?
- How to create a custom taxonomy using a shortcode?
- Custom URLs in Custom Search Results
- how to extract the username of the wordpress user?
- how does the wordpress rest API work
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- tax_query not working
- WordPress set taxonomy on post?
- wp_query not resetting, last post hanging
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- custom taxonomy not showing in Gutenberg
- Why does wp_remove_object_terms not work?
- how to get term id from current post type instead of name
- Display children category images
- Dropdown taxonomy lists in admin menu
- Hide echo of no categories from get_object_taxonomies
- How to define %category% for custom taxonomies?
- Filter with two id of the same value CPT UI(taxanomies)
- get_terms does not return any results for my custom taxonomy?
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- How to Create Multi selection search Form using Default WordPress Category Terms, and Custom post Types Taxonomies Terms?
- How to filter and/or sort user taxonomy query inside custom user taxonomy archive page?
- Create multiple taxonomies with custom fields values on the fly when creating new posts
- How do I get the correct URL?
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- deleted_$taxonomy not getting fired
- Query all images with certain tag in media library using visual portfolio plugin
- Problem with wp_list_category with custom taxomy
- Restrict viewing of posts by category, user role
- WP Query : strange behaviour with multiple no-hierarchical tax
- Dynamic drop down of child terms and then drop down posts
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- Include attachments with a custom taxonomy in search
- List terms and order by second word
- If term and page have the same slug, how can I view the term archive?
- Does a codex exist for creating meta boxes in taxonomy
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- How to query posts that are not related to any term of a taxonomy?
- Function code problem
- Permalinks not working on MU network with domain mapping
- add_action with variable as a part of the $tag string
- Display woocommerce product_cat child terms with thumbnails
- How to add a custom page template selector to a custom taxonomy?
- How to display Custom taxonomy on custom post listing page [duplicate]
- 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 taxonomy fields of posts into RSS feed