Skip Navigation

[Closed] Creating a Country, State, City hierarchical taxonomy

This support ticket is created 9 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 3 replies, has 2 voices.

Last updated by Caridad 9 years, 5 months ago.

Assigned support staff: Caridad.

Author
Posts
#208670

Hello,

I am looking for this everywhere but couldn't find how to create a Country, State, City hierarchical taxonomy. I even tried researching plugins but it looks like other people like me are also looking for the same.

I did like to mention the URL where you can see a live demo, off course its not using WP but a different script. Please let me know if its ok to mention the URL over here.

Thanks,

Alok

#208692

Dear Alok,

With a hierarchical taxonomy you can represent the structure of the locations. Go ahead and post the URL, lets see what you need.

Regards,
Caridad

#208908

Hello,

You can see a example over here hidden link.

Thanks,

Alok

#209085

Dear Alok,

As far as I can see you should be able to do this. Work down your way level by level.

1) first create a view to show taxonomies whose parent is None. Insert this view into a page and make sure you are viewing the top level taxonomy terms.

2) then create a child view, but this time add a filter for the parent to match the term in the parent view. Insert this view in the previously created view, in the layout area.

3) finally, insert the child view also into its own layout, so that it recursively displays child taxonomies.

4) you will have to remove the [wpv-no-items-found] section so that it looks good.

Regards
Caridad

The topic ‘[Closed] Creating a Country, State, City hierarchical taxonomy’ is closed to new replies.