Forums › Forums › Search & Filter Pro › Ignore certain filter from query
- This topic has 12 replies, 2 voices, and was last updated 8 years ago by Anonymous.
-
Anonymous(Private) December 2, 2016 at 11:46 am #73627
“put values in each field” means Search&Filter form on frontend?
I thought when form data was submitted, I can catch values in sf_edit_query_args.
But actually I don’t see any values related to filters.i.e. this is a sample of $query_args in sf_edit_query_args
At that time I correct this data, couple of filters had values.(selected)
But there isn’t any in $query_args.
Array
(
[paged] => 1
[search_filter_id] => 194
[search_filter_override] =>
[posts_per_page] => 10
[post_status] => Array
(
[0] => publish
)[meta_query] => Array
(
)[post_type] => product_resource
)Trevor(Private) December 3, 2016 at 8:51 am #73806So, I have spoken to Ross. He says what you want to do is not really possible. He did explain it to me, but essentially the chances are that the filter is already in our caching system (taxonomy or meta filter) and that means you can’t see it in the args to remove it as S&F has already processed this and added the relevant post IDs to the
post__in
argument.You could use another field, like the post type field. You could then use sf edit query args to overwrite the post type argument manually effectively ignoring the user selection on the post type field …..
then…
You can use the filter we have to edit the field options to put whatever options you want.
A round-a-bout back-door way of doing what you want.
-
AuthorPosts