How to link categories to custom taxonomy terms?

@Maor Barazany – Glad you joined this site.

I think adding a custom field to your taxonomy witch is in the form of select tag so each one of your taxonomy terms is linked to a category is the best way to create that relationships.

Then on your meta box create a dropdown of you categories with an OnChange event function to show the taxonomy terms related to that category all in JQuery or plain JavaScript without the ajax part.

in that way once the user selects a category from the dropdown the list of taxonomy terms will
change according to that category, and there is no need to save a draft for that.

Basically what I’m suggesting is to generate all of the relations on the meta box display function so you won’t need to create any ajax calls.

hope’s this makes any sense.

Leave a Comment