Forums Forums Search & Filter Pro "meta" filtering problem

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #26632

    I’m using a rating plugin (Multi rating), and i want to filter by rating from 1-5

    But it seems i’am using it wrong, as it gives no changes at all.

    My general operator is OR

    When i’m filtering a filed with 3 results using 1-2 range rating (there’s not post rated as this), no changes. It’s including all post, with rating or not.
    When i select a field with no result along with a 0-5 range rating (which, with a OR operator, should return only 2 postes), there’s no changes to the query (not post returned)

    ?sfid=140&_sfm_mr_rating_results=0+5&_sft_pieces=bionicles

    In meta, i’ve got mr_rating_results and the meta seems correct…

    Ross Moderator
    #26645

    If you check in a post meta field, choose the “choice” tab, and choose “auto suggest” – do you see the kind of values you are expecting?

    Range sliders are always added with an AND operator.

    As you can see in the description of the operators – this setting is defined as working only on taxonomy fields, and post meta (choice) field types.

    Let me know

    Thanks

    Anonymous
    #26662

    -i’ve made a selection of variables from 1 to 5

    When i select all : it doesn’t affect the search
    when i select zero for ratings and a field, it return also post with rating for 4 to 5

    ?sfid=140&_sfm_mr_rating_results=0&_sft_pieces=classic

    With this one

    ?sfid=140&_sfm_mr_rating_results=5&_sft_pieces=biocnicles&_sft_catalogue=angulaire

    it should return only two results, but it returns all. the “all ratings” seem to overide, as a OR operator

    Anonymous
    #27009

    i could change for a more compatible rating plugin, but the 3 others i’ve tried don’t have meta (or i cannot see it it S&F)

    Ross Moderator
    #27197

    Hey there

    Ok, so I think I may have figured out logically what might be going wrong. Tell me if this sounds right to you:

    – So you are using a ratings plugin.
    – This plugin allows ratings to be left by users (frontend)

    If this is the case, then likely it is storing all the ratings in the meta key.

    This means S&F is finding ANY of the ratings associated with that post (sounds like the OR behavior your describe above).

    In this case what you want to do is create a new custom field/post meta, which takes an average of all those ratings and stored it in a new field called somethinh like “overall rating”

    S&F will only support a single value for a post meta meta field – so you must find a way to store the total rating left by users into a single field – and then you can use this with S&F.

    Thanks

    Anonymous
    #27206

    thanks. Seeing the anwsers, you seem totally right althought there should be a unique value for each post. I will let you know

Viewing 6 posts - 1 through 6 (of 6 total)