You don’t need both, one of them is enough. However you need to do it in a order when thing you are adding support to is already registers.
So in first case you need to define CPT before taxonomy and in second case after.
The third way would be to use register_taxonomy_for_object_type()
which let’s you do this after both are registered, regardless of order.
Related Posts:
- Combining Multiple Taxonomies in one URL
- Getting the Intersection of Two Custom Taxonomy Terms for a Custom Post Type?
- Why does my custom taxonomy show a total count across all post types
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- ‘No pages found’ in Dashboard after registering custom taxonomy
- Custom Post Type with Nested Taxonomy and Template Files
- How to display recent posts added in custom post types
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Query for posts in 2 taxonomies
- Custom post types – show specific posts
- Permalinks when filtering multiple custom post types by single taxonomy
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- custom taxonomy archive by year
- How can I filter by taxonomy on a custom post type’s page?
- Can custom taxonomies items have attached properties?
- Associate custom post types with normal posts
- WP 3.0.5 – Custom posts matching 2 taxonomies
- Custom Post Type Loop within Shortcode
- Custom Taxonomy URL are redirecting to page with the same name
- Loop custom taxonomy to get lists of cutom post types?
- Hierarchical Custom Post Types in Array
- Making certain categories of CPT not publicly queryable
- Query with no terms uses index.php template instead of archive.php
- Conditional Query of Custom Post Type and custom taxonomy
- Is $object_type truly required with register_taxonomy()?
- Show a Category X’s custom post type on Category X archive page?
- custom taxonamy and post type
- custom-taxonomy/post_name instead of the default post_type/post_name
- Getting categories of posts under a custom taxonomy
- Custom taxonomies relationship
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- Use custom walker to add taxonomy terms to main nav menu
- WP_Query orderby and tax_query
- Custom Taxonomy not being saved on custom posttype
- Add term to custom post type on draft
- Multiple tag cloud filtering
- Custom Post Type Category Link
- Show all tags on custom post type
- Get parent category id from child category page for custom taxonomy
- Trying to get custom post of a custom taxonomy
- Creating custom post type with custom taxonomy and custom fields programatically
- How to get only child terms from a custom taxonomy of current post type?
- How can I create an automatic drop down menu with my tags?
- How to see posts in taxonomy endpoint
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- sort CPT on Custom Taxonomy Archive page
- Cannot choose custom categories for custom post type in post editor
- Different structure/content for posts from a custom post type
- Custom Post Type View Button in Admin Gives 400 Error
- Custom Post Type URL Rewrite’s
- Add term for custom taxonomy from front end
- Custom Taxonomy Filter Issues
- how to organize my categories or should I do custom post types for some?
- How do i display post from a taxonomy term?
- Multiple permalinks for a single post with multiple taxonomies
- rewrite rules hierarchical
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- How do I make a request in my browser to search the CPT taxonomy?
- Archive page of taxonomy returns a 404 error
- How do I set a post slug automatically based on taxonomy?
- Get a list of custom post type (property) when clicked on custom taxonomy 1 (rent or sale) from custom taxonomy 2 (city) page
- How to divide Subcategories into pages of parent category wordpress
- update custom taxonomy custom fields
- Filter taxonomy by CPT
- Get dropdown child categories from parent category of custom post type
- How to display “META” array in register_taxonomy
- If ACF Post Object post has custom taxonomy term…
- I want to create a metabox under custom taxonomy
- Customise Permalink Structure For Custom Post Types
- How to filter taxonomy of a custom post type and display it in the single post type page in the back end?
- Parent and child categories with their id in drop_down in CPT
- CPT/Taxonomy/Postname permalink structure makes pagination break
- Set different posts_per_page for custom post type/taxonomy
- Custom Taxonomy not working front side Woocommerce
- Custom post type post_type_link gives “page not found” on any other custom post type
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Taxonomy’s title
- Display all posts from single taxonomy term
- Creating adminable dynamic filtering on custom post type
- Best way to use Category & Custom Fields?
- WP_Query for CPT with filter by another WP_Query
- Get posts in same category not working
- Heirarchical URLs with CPT and custom taxonomy
- Displaying taxonomies with manage_{custom-post-type}_posts_custom_column
- Plugin Error on activating
- Permalinks when using Custom Post Type with static page for archive
- How to change permalinks to taxonomy and post type’s posts
- Paginate custom taxonomy category with wp_custom_pagination
- Custom post type post taxonomies
- Query Only Show Text on Posts With Certain Taxonomy Tag
- Custom Taxonomy Showing in WP Menu
- Storing/querying custom date data
- Custom Template Taxonomy
- How to relate one custom post type to another custom post type
- Issue On Listing Woocommerce Parent Tag List
- Links in archive not including taxonomy parameter
- Create a hierarchical list of posts that’s grouped and nested by category