Forums › Forums › Search & Filter Pro › multiple post meta results not working
- This topic has 19 replies, 3 voices, and was last updated 9 years, 1 month ago by Anonymous.
-
Anonymous(Private) October 16, 2015 at 12:27 am #27484
Is it possible to use get_post_custom_values instead of get_post_meta in the search form to solve it, since some of my custom meta fields have more than 1 value associated with them? I’m just not very sure how to replace it the proper way to work?
Anonymous(Private) October 16, 2015 at 3:50 pm #27526Mine is a little different, if I have a product tagged in two options it will combine the two as a single option, and only filter display that one. For example a product w/ science metakey w/ values of ‘Environmental’, ‘Chemistry’. If it’s tagged as an option in both it will be filtered to ‘Environmental | Chemistry’ as a single key value. But I think it has to do w/ the platforms we are using. I will still be interested in your solution.
Ross Moderator(Private) October 22, 2015 at 2:20 pm #27967Hi Dagmara
Yes I think you are right – before, meta queries were done using WordPress WP_Query, but now they are done based on the S&F cache.
So I likely just need to get the caching system to index all the values, rather than the first one it finds from
get_post_meta
I’m looking into this and will get back to you 🙂
Thanks
Ross Moderator(Private) October 27, 2015 at 3:27 pm #28329I’ve just emailed you a fix, let me know if it works!
Thanks
-
AuthorPosts