- This topic has 2 replies, 2 voices, and was last updated 1 week, 1 day ago by .
I have a support issue that I think belongs to this category, but I might be mistaken because it involves relationships and the metabox builder and several other extensions. So, please excuse me if I’m posting in the wrong area, and just give me the right directions.
What I am working with:
* Custom Post Type [lesson]
* Custom Taxonomy (hierarchical) [course]
* Custom Taxonomy (non-hierarchical) [section]
What I have so far:
Both taxonomies are showing up on the CPT add and edit page, and all function properly.
I then made a metabox with custom fields for the CPT with two fields to replace the default WordPress ones.
The two fields are and their types are:
1. Course (taxonomy)
2. Section (taxonomy)
Both have advanced custom attributes to permit adding new taxonomies and removing the default WordPress metabox.
What I would like to do:
Make it so that when I select a specific [course] on the [lesson] page, the [section] is filtered to show ONLY [section]s associated with that [course].
Because right now the [section] field allows me to select any item, regardless of its relationship to [course].
Other factors to keep in mind:
In this setup, I want to allow a [course] to have many [section]s, but a [section] should only be permitted to belong to one [course].
Can you teach me how to accomplish this, please?
- You must be logged in to reply to this topic.