automatically include parent w/ child custom taxonomy
-
I’m building a rather large directory of groups that spans several states. The groups are a custom post type and I’m thinking a custom taxonomy for states as parents and cities to be their children. That way I can output the directory by state and break it out by city. I’m looking to remove the redundancy of having my client enter the city and state though when entering other details about these groups.
right now I have custom meta boxes for:
Group Name
Building Name
Street Address
City, State ZIP
phone
email
time, date of meetings
description of meeting = contentIs there a way to query for the city and automatically get the parent state? I tried it as a list of terms and it doesn’t work because it spits them out alphabetically. So sometimes the State is in the right place, sometimes it’s before the city.
Thanks for any ideas!
-M
- The topic ‘automatically include parent w/ child custom taxonomy’ is closed to new replies.