#37424 closed feature request (worksforme)
Add argument to register_taxonomy to specify which post type(s) show up on Tax archive
| Reported by: | sc0ttkclark | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Right now, taxonomy archives only show the default post post type in their archives. However, it would be greatly useful during register_taxonomy() to specify exactly which post type(s) should appear under the associated taxonomy archive.
So this would touch register_taxonomy() to set the argument, and WP_Query to make use of the argument when setting the default post type for the query to use (if one has not been specified).
Attachments (1)
Change History (5)
#3
@
10 years ago
- Milestone Awaiting Review
- Resolution → worksforme
- Status new → closed
I'm sorry, I was mistaken in my initial creation of this ticket. This only applies to custom post types associated with the Category and Post Tag taxonomies. I'll have to open a new one, as (custom) taxonomies already have this functionality based on associated objects.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hey sc0ttkclark great suggestion, I sometimes encounter the same issue.
Attached a patch script