Your code is basically correct, except that the standard taxonomies have singular names.
Use taxonomies' => array('category', 'post_tag') instead.
Related Posts:
- get_terms by custom post type
- Get the first post term
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- Custom taxonomy not showing up when adding a new custom post type
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Create an archive page for custom taxonomies
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- How can you make permalink work for custom post type and taxonomy?
- Internationalize / translate custom post types & taxonomies
- Rewrite custom post & taxonomy to share same URL path
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Taxonomy-{taxnonomy}.php is not working
- Associate Taxonomies Across Post Types
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- How to make a custom taxonomy selectable in post publish area?
- Have a Custom Post Type index page display taxonomy items instead of posts
- How to get the post type from a category id?
- Custom Post type is being ignored in query
- Hide specific parent categories from post edit
- Metadata for a taxonomy – is there any WordPress way of doing this?
- How do I get array of types associated with a taxonomy?
- Show category ID on custom post type
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Using default WP menu functionality to link to custom post-type listing?
- How to display custom taxonomies with links in filter menu?
- How to Filter custom post type by taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Show child custom post types list inside single parent custom post type
- Several post types on WP Query by tag and taxonomy
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Review site custom post type structure
- Different Category system needed for the Custom Post Type
- Categories and tags for custom post types
- Rename a slug label
- Custom Taxonomy Category link
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- Archive-posttype.php isn’t loaded
- How to define a term for custom taxonomy
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- Need help deciding on a taxonomy
- Query all post and CPT from 2 specific taxonomies AND by ACF custom field
- Get Posts by Category, Tag , and CPT Taxonomy
- Topic won’t save for a custom post type — how to debug?
- WordPress multisite – is it possible to have different taxonomies for each site?
- Get assigned post categories
- Query custom post types & Taxonomies and list them in a table on a page
- Default Category Page not showing custom post type which has taxonomy category
- How to show list of taxonomy terms associated with specific post?
- Creating custom post type posts and associating them with a post from another custom post type
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Custom taxonomy query showing more than 4 posts
- Custom Post Types – Taxonomy and Customization
- wp_dropdown_pages with tax_query clause
- Building a Data Intensive Website with WordPress
- Duplicate slug/permalink issue while adding same post name
- How best to structure multiple CPTs and tax within a ‘resources’ section
- Custom post type archive page filters
- Filter taxonomy by CPT
- Custom permalink structure for custom post types including multiple taxonomy
- get taxonomies from terms
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Taxonomy counter on Taxonomy List(plugin)
- Archive for custom taxonomy
- Get all posts for custom taxonomy term
- Listing all custom posts having a specific taxonomy whatever the terms
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- tax_query not working?
- Taxonomy template file not working with a taxonomy that contains a slash
- I can not call the categories of custom post type
- Showing taxonomies with terms that are attached to custom post
- Custom Taxonomy page redirecting to 404 page
- Multiple Custom Post Type with different Taxonomies
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Filter By Term Not Working – Custom Post Type
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Simple term-archive-linked Taxonomy Entry output
- Custom Post Type Categories Not Maintaining URL structure any more
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- category_name not working in WP_Query
- How can I set up the URL for a category archive for a custom post type?
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- List custom taxonomy terms
- How do i get the taxonomy term name on the CPT archive page?
- Query multiple post of which one by taxonomy
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls
- How to determ a custom post type url?