Forums › Forums › Search & Filter Pro › Search on location with post meta
- This topic has 14 replies, 2 voices, and was last updated 9 years ago by Anonymous.
-
Anonymous(Private) November 11, 2015 at 4:27 pm #29506
Hi i’m trying to get filtering on locations to work but it seems that only 1 on 1 location works.
I have posts that have different locations as custom fields. For example 1 post has “Belgium, France and Spain”.
Next I want to search on “Belgium” but that doesn’t work as it only works if the post only has “Belgium” assigned.
Is there a way I could modify the search & filter plugin to look at “containing” locations or to make sure they don’t look for “Belgium, France AND Spain” but that each seperately can be found?
Thanks for your reply!
Ross Moderator(Private) November 11, 2015 at 11:47 pm #29587Hey Kenny
So when a field has “Belgium, France and Spain” assigned, this is one string as you wrote with the comma in?
Or will the post contain 3 seperate values “Belgium”, “France” and “Spain”?
Thanks
Anonymous(Private) November 12, 2015 at 12:14 am #29594Dear Ross,
I use user-frontend plugin to assign different locations to a certain post. Using a checkbox the creator can than check the locations which they desire. For example Belgium AND France. If I use the meta key of location in the search & filter pro and I filter on Antwerp or on France, nothing is visible.
A test site can be found here: http://boekhoudtips.be/
It takes Antwerp and Limburg as: Antwerpen| Limburg
Thanks for looking into it.
Ross Moderator(Private) November 12, 2015 at 9:28 am #29627Hey Kenny
I only get a holding page when accessing that? Do you have login details?
Thanks
Ross Moderator(Private) November 16, 2015 at 10:15 am #29918Hey Kenny
Looking at this again today.
Thanks
-
AuthorPosts