[Resolved] Create a search on an archive page for one element of a maps address
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am using the Maps Block on an archive page.
For example, I have a directory for "Choruses."
One of the search fields is "City," and another is "State."
I want input in the search field for City to pull up on the map all Choruses in that city.
Is there any documentation that you are following?
I can't find any that addresses this issue.
Thank you for contacting us and I'd be happy to assist.
If your goal is to add a location-based search, where results falling within the set radius of a location or city are shown, it is not supported in the archives.
I don't want to filter by distance. I want a user to be able to search for the state of Texas and see all of the choruses in that state - or - look for the city of Philadelphia and see all the choruses in that city. If all filters are cleared, they could see all the choruses everywhere on the map. Does that make sense? Thanks in advance for your help.
In case, you're not seeing the option to use them for the search, I'll need to see how this archive is set up in the admin area. You're welcome to share temporary admin login details, along with the link to the archive page.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
During troubleshooting, I noticed that there were two custom fields with the name 'Chorus City'.
( screenshot: hidden link )
One with the slug 'chorus-city' and the other with the slug 'chorus-city-location'. The one with the 'chorus-city-location' is currently in use to store the city field's data.
In the archive 'All Choruses', I removed the 'Custom Search Filter' block for this field and added it again, for the correct field and the filter is working now.
( screenshot: hidden link )
regards,
Waqar
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.