Tell us what you are trying to do?
I have partners that have multiple locations via a repeating field for address. I need to be able to sort and search these partners on any and all addresses related to their custom post type but it seems like Toolset Views and Maps only search on one address occurence from the repeating group.
If I create a partner with locations in Boston, MA and Hartford, CT, I can only search for them by location using the first of the addresses.
Is there any documentation that you are following?
Maps documentation doesn't get this detailed.
Is there a similar example that we can see?
Not that I know of. Other threads asked how to show more than one address on a map but didn't mention searching and ordering at all.
What is the link to your site?
This is not on the site yet. Our existing partner search is custom PHP code that I am trying to replace.
You can go to hidden link
and you'll see two partners, the first has two locations listed and the second has one location listed. Partners are separated by an HR. If you search on Littleton, MA you'll see both partners and all addresses. If you search for Hartford, CT, you won't get any results.
In the database, the Littleton location comes before the Hartford location in the _wpcf-partner-address-sort-order postmeta for the partner with the two locations. Even switching the order here doesn't change anything. Toolset only uses the first address that occurs in postmeta for the search. If I delete the Littleton location, the Hartford search works. If I add the Littleton location back, making it the second in the database, only Hartford search finds this partner. If I then delete Hartford and re-add it, Littleton becomes first and Littleton search now works again but Hartford does not.
Clearly there is no support for repeating addresses in the distance search. Is this as intended and not going to change anytime soon? In other words, do I have to separate locations into their own post type as a child of partners to be able to search for partners with more than one location or is this going to be fixed so I can use a repeating address field for partners with more than one location?