Forums › Forums › Search & Filter Pro › "meta" filtering problem
- This topic has 5 replies, 2 voices, and was last updated 9 years, 2 months ago by Anonymous.
-
Anonymous(Private) October 6, 2015 at 4:30 pm #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(Private) October 6, 2015 at 6:39 pm #26645If 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(Private) October 6, 2015 at 8:39 pm #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
Ross Moderator(Private) October 13, 2015 at 12:32 pm #27197Hey 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
-
AuthorPosts