It makes sense that each attribute should be a taxonomy – eg roots, leaves, seeds – but you don’t need a separate taxonomy for months. Instead, the months should be the terms of these taxonomies.
The second argument to register_taxonomy
in each case should be the name of your custom post type. This will mean you’ll get a box for each taxonomy on the ‘Edit Plant’ screen. And in each box, a list of months (you’ll need to populate this yourself).
Obviously this makes it straightforward to get the months of interest with respect to a certain plant, but it’s perfectly possible to go the other way. For instance, if you wanted to get all of the plants which were of interest in a given month, you could construct this query quite easily.
Related Posts:
- get_the_category_list or get_the_tag_list for custom post types and taxonomies?
- wp_dropdown_categories in custom post type with custom taxonomy
- How can I convert a Custom Taxonomy to a Custom Post Type?
- wp_get_object_terms(): count relative to passed IDs?
- Add/overwrite a parameter on an existing post type/taxonomy
- Get the ‘slug’ of a custom taxonomy
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Term Checklist Walker – Disable Parent Categories
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- Limiting number of custom posts shown on taxonomy page
- Custom Taxonomy conditionals
- Page to display an archive of taxonomies
- How to create archive page for taxonomy terms within custom post type
- How to make custom posts to behave like taxonomy?
- How do I provide a “show all posts” link in a paginated term archive?
- List terms from Custom Taxonomy
- List custom post type by custom tax term as page title
- Set object terms not working on plugin activation
- custom taxonomy relationship
- Parent & Child Taxonomy slugs in custom post permalink
- Should I use custom taxonomy or custom post type
- How to use the post_title of custom post type as taxonomy
- Custom Post Type Archive Page Filtering
- Custom Taxonomy Navigation, with current menu items for children?
- Custom Post Type doesn’t show Draft and Trash Options
- Custom Post Type With Categories
- Missing Posts in Custom Taxonomy List
- A question on creating filters for custom posts using taxonomy
- Custom Taxonomy back-end customizations
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Permalinks /country/city/cpt/postname/
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom Post Type by Taxonomy
- browse by category and tags?
- Taxonomy structure help
- Create more category hierarchical depth for custom post type/taxonomy plugin (widget)
- count results in search page based on custom category
- Assign Custom post to Custom Taxonomy
- Show custom post type inside a custom post type
- How to add custom taxonomy in custom post type permalink?
- What’s the name of the custom post type yearly archive template?
- Combine multiple getEntityRecords calls
- Create an archive page for custom post type with custom taxonomy
- Custom URLs in post types make it impossible to view archive
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- How to check if post/page or taxonomy post is published by admin
- Custom taxonomy or custom page templates?
- Custom Taxonomy Search result page
- Permalink problems with custom post type and custom taxonomy
- Get terms of a post but only if they’re also the child of a specific term
- Pull in taxonomy field of custom post type in new query
- Use the custom post type archive for taxonomies?
- Custom Post Type Categories URL not displaying posts
- Custom order of Taxonomy Terms
- Taxonomy template page not working
- Custom post type subtaxonomy template
- tax_query (if the terms are empty)
- Getting only one post per category
- How to count other posts not having specific taxonomy terms?
- List all posts in taxonomy term
- Get posts by category name
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- set post_type based on custom taxonomy permalink
- How can I tell if I’m on a custom post type archive page?
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- How to Implement Search Functionality?
- How to implement very unusual wordpress routing structure?
- Search CPT by tag ids
- Custom post type 404 category page
- Post template with breadcrumb needs to show page navigated from
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How to associate custom taxonomy terms with custom post type?
- WP_Query not using custom taxonomy categories on custom post type
- Changing permalink of default Post with custom post
- get_queried_object not work in taxonomy page
- Combine multiple separate lists into one
- Change custom post taxonomy values from front-end
- Pages of my taxonomy terms are showing all posts
- Is there a way to re-order the Custom Taxonomy drop-down on a Custom Post listing page?
- How to get all posts related to a taxonomy?
- Custom post types not displaying per category
- Post Custom & Taxonomy 404 error
- Custom Post Type tag taxonomy “Page Not Found”
- Remove custom post type slug but keep related category taxonomy permalink
- page not found for example.com/custom-post-name
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Is it possible to add and display custom post types to an array?
- Custom post type and custom taxonomies display
- predefined custom field on registration page
- Displaying taxonomy icon outside archive page
- Why won’t this rewrite rule work?
- Archive.php is not displaying tags
- insert a taxonomy for a custom post type
- Changing custom taxonomy’s slug as required?
- Archive custom template from search
- Changing checkbox array from single to multiple select
- Get all terms assigned to a post from different taxonomies