So I dug into the source and discovered that even though the documentation STATES that $object_type
is “required”, there’s nothing in the logic that makes this so. $object_type
is just added to the properties of the tax object, which presumably is also done when you register the tax while creating the custom post, and also when you use register_taxonomy_for_object_type()
. I tried creating a custom taxonomy with null for the $object_type
parameter, and then assigning the tax when creating the custom post type and it worked as hoped-for.
Codex updated.
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- What are the differences between custom post type and custom page templates?
- WP insert post and custom taxonomy
- Ordering Posts List By Taxonomy Terms?
- Templates for Custom Post Types and Custom Taxonomies
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Add links to post categories and taxonomies in wysiwyg link modal?
- Query multiple taxonomy in Custom Post Type
- automatically create taxonomy with same name as post title
- Separate Custom Post Type Taxonomy by Comma
- Custom post type archive with dynamic taxonomy filtering – is it possible
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Custom Taxonomy Breadcrumb Navigation
- Remove “-2” from a Toolset Types URL with the same post name
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- WordPress import not importing custom taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Ordering Custom Post Types with WP_Query
- Is it possible to make tag archive page specific to Custom Post Type?
- Multiple portfolios with one custom post type?
- Custom Post Type and Taxonomy combination
- Taxonomy.php Not Showing Posts
- How to check the terms in single custom post type template
- How can I move a custom taxonomy and its data from one post type to another?
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Posts from all the categories are being displayed instead of particular category
- Get next and previous 3 posts in a term in single post page
- Disable block with taxonomies at post page
- search also in taxonomy, tags and custom fields
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Taxonomies don’t show up on in the dashboard page for a custom post type in wordpress 5.22
- list taxonomies from a custom post type
- WordPress custom taxonomy, posts urls
- Remove slug in URL custom post type
- Taxonomies relations
- Import data from CSV with custom taxomony empty
- Custom Post Type Loop with Query Var
- Full Custom Post Type List Organised by two Taxonomies
- Adding custom taxonomy in same menu place with two custom post types
- Template for all categories of a custom post type?
- Template files for Custom Post Type and Taxonomy
- in_category for custom post types
- WordPress menu with custom taxonomy
- attach CPT data to a taxonomy
- Listing all slugs?
- Creating a non-hierarchical Taxonomy that behaves like categories
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- How to get xml file for a single post type?
- How to change single custom post template by custom taxonomy?
- How to query Posts from a custom post type which contains a custom taxonomy?
- Archive page for custom post type and custom taxonomy
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- How do I ensure that post_type and Taxonomy use the same slug?
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Not saving custom taxonomy while using ajax
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- Post Tags not working for Custom Post type
- 404 – Taxonomy Archive Page
- Display Custom Field or Custom Taxonomy in front page /post/product
- CPT tags not showing when editing post
- Some posts not displaying by taxonomy term
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Custom taxonomy with custom post type archive page
- Multiple non-hierarchical custom taxonomies frequently used terms showing up in first selected taxonomy box
- Display custom tax in “while” loop
- Custom URL for Custom Post Type & Custom Taxonomy Term
- I want to create pagination for my custom post type archive that i am displaying with loop
- Showing taxonomies with terms that are attached to custom post
- Saving Child Terms on front end not setting parent
- Custom taxanomy and custom post type – pagination leads to 404
- Getting all custom post taxonomies and exhibiting only part of them
- Help with Travel Guide Setup
- Custome post type “tags” pick default archive instead of custom post type archive
- How do I retrieve the title of a term of a custom post type with custom taxonomies?
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom post type AND custom taxonomy are not connected
- Loop with Custom Post Type and Taxonomies
- Single page archive – get coresponding taxonomy and terms
- How to assign custom post template to its custom taxonomy terms
- Excluding top level from taxonomy and post loop
- WordPress Custom Post Type and sort by Tags
- Displaying custom post types with taxonomy
- Get a list of categories ids
- Using one custom taxonomy.php for two custom taxonomies?
- Add taxonomy to custom post type archive
- Custom taxonomy archive not showing posts of certain child taxonomies
- posting twice from an array?
- Custom taxonomy labels won’t display
- Custom post type with custom taxonomy
- How do i get the taxonomy term name on the CPT archive page?
- Dynamically count the number of custom post types associated to a custom taxonomy