Forums Forums Search & Filter Pro multiple post meta results not working

Tagged: ,

  • This topic has 19 replies, 3 voices, and was last updated 9 years ago by Anonymous.
Viewing 10 posts - 11 through 20 (of 20 total)
  • Anonymous
    #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
    #27524

    Hey-
    Can’t see alot of the discussion but I am attempting to filter products using the metakeys to filter w/ more than one value. Interested to see how this resolves.

    Anonymous
    #27525

    Hi Christopher,

    still trying to resolve it cause after the update my search form (and the filter counts) only picks up the first value of each meta.

    Anonymous
    #27526

    Mine 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.

    Anonymous
    #27530

    @Christoper
    I will definitely post a solution if I come up with anything and please do the same

    Anonymous
    #27797

    Hi Ross,

    I know you must be busy but do you think that the problem is with get_post_meta that the plugin uses? Before the upgrade the search was picking up both values of each meta, it just didn’t have the counts and didn’t hide empty values.

    Ross Moderator
    #27967

    Hi 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

    Anonymous
    #28002

    Thank you very much:)

    Ross Moderator
    #28329

    I’ve just emailed you a fix, let me know if it works!

    Thanks

    Anonymous
    #28450

    Hi Ross,

    Yes it works perfectly! Thank you so much for your help 🙂

Viewing 10 posts - 11 through 20 (of 20 total)