Navigate by City
I am looking to fin a way that allow me to show a page where are listed all the cities inside my CP and from this list let the user to choose the city to show the relative ads.
I've been esperimenting quite a lot but I a not sure to have found the righe solution... I thought I'll create a
WP loop that allows me to go throught all the
ad_listing and show only the names of the cities inside my db, but in order to sort them by region ecc... It is not the best way!
Something easier will be to create a new taxonomy for my ads and create in it all the region and cities for my state, but in that case I should change the form to insert a the new taxonomy instead of the '
cp_city' but is not something that I would like to do...
Maybe will be better if I try to sniff the '
cp_city' value once the form will be submitted and save the ad_listing inside the appropiate category...
Am I getting closer?
Do you know a better way to show as
directory style the cities of my CP?
Thanks in advance for your answers!!