Advice on Implementing URL Filters and Custom Search with WP Data Access
-
Hello everyone,
I am working on a project for my WordPress site, https://www.calcolacanoneconcordato.it, and I need some advice on how to best implement functionalities using WP Data Access.
Objective: Create a page titled “trovazona” that can intercept a specific city mentioned in the URL, for example:
https://www.calcolacanoneconcordato.it/trovazona?cesena
. This should direct the user to the corresponding city’s page.Required Functionalities:
- Custom Address Search: On a specific city page (e.g., Cesena), users should be able to type in their address (even partially). This should then be selectable from a dropdown menu. Upon selecting the address, the site should display the associated zone identifier, like “Your Zone is: center”.
- Special Cases: In some cities, like Bergamo, instead of an address search, I need to display instructional text and some links.
Specific Questions:
- How can I set up the URL filter to intercept the city from the URL and direct the user to the correct page?
- What is the best strategy for implementing an address search system with WP Data Access, which can return the zone identifier?
- For special cases (like Bergamo), is there an efficient way to display customized content instead of the address search?
Any advice or suggestions on how to structure these functionalities with WP Data Access would be greatly appreciated. Thank you in advance for your help!
- The topic ‘Advice on Implementing URL Filters and Custom Search with WP Data Access’ is closed to new replies.