In a site I have registered some custom taxonomies.
I want to have sort of a linkage between one of the custom taxonomies and the categories (which is, also, a taxonomy by itself), in such a way:
If the admin assigns a post to category A - so he will be able to choose to associate with that post only specific terms of the custom taxonomy.
If the user assigns a post to category B - then he will be able to choose only other terms set from that custom taxonomy, and so on..
Each custom taxonomy term would be 'associated' with only one category.
Two ways in which I do not want to implement it -
I don't want to use sub-categories for this, but to use a different taxonomy.
Also, I don't want to register some different taxonomies and each them to put the terms that fit each category.
The only way I could think of now, is to add a custom field to each term of the custom taxonomy. This field will be selected in the admin, for example, through a select box to avoid mistakes.
Then in the post editing screen, instead of showing the regular default metabox of adding terms of a taxonomy (which is like adding tags) - so to remove it and add a custom metabox, where relevant terms are selectable by the selected category.
Of course, in that case the editor would have to first save a draft after choosing a category, to let the system know what terms to pull of the custom taxonomy (or, make ann Ajax call after each checkbox check, to reload the list of possible terms to choose according to the category selected).
I'm not sure this is the best way, but it's only now I think ...
I would love to brainstorm ideas of this issue.
Thanks a lot, Maor