Forums › Forums › Search & Filter Pro › Checkbox Tags not searching properly
- This topic has 17 replies, 2 voices, and was last updated 9 years, 9 months ago by
Anonymous.
-
Ross Moderator(Private) January 24, 2016 at 9:46 pm #35153
By any chance are you doing something with the filter
sf_input_object_pre?https://gist.github.com/rmorse/7b59b45a14b1ca179868
Thanks
Ross Moderator(Private) January 24, 2016 at 10:06 pm #35156So odd, that really doesn’t make any sense at all (as in, something really strange must be going on to cause this behaviour).
Somewhere in your setup, there is code manipulating values that relate to tags – and is somehow defaulting the tags to the first option “autism” – I actually can’t think how it could be achieved without using the filter I linked above…
The only thing I would suggest is if you can disabled all ohter plugins, and test with a default theme – even if this is only locally.
Something strange is going on, and it certainly seems like non standard WP behaviour.
Thanks
Ross Moderator(Private) January 25, 2016 at 12:34 pm #35194Add this on the line before
have_posts():<?php do_action("search_filter_archive_query", 11995); ?>Replace 11995 with the ID of your search form.
Let me know!
Anonymous(Private) January 25, 2016 at 1:49 pm #35208It’s getting close!
It looks like it searches properly now, but when it updates it clears the initial search and checks the “autism” box.
For example if you go to the site and check the “retail” box and then search, it will display the only result tagged with “retail” but then the “autism” box will be the only one checked after the search.
Ross Moderator(Private) January 25, 2016 at 2:23 pm #35210Hi Ryan
So taking a look, it does seem like something in your setup must be modifying the forms in S&F or the
$_GETparameters before search & filter tries to access them –I think at this stage you need to disable all other plugins, and test with another theme – just so you can track down what is actually causing an issue.
A better way might be to create a dev site, and add in the plugins & themes one by one until the issue shows again.
Something really strange is going on and I believe it will be to do with a filter or custom code somewhere that is not being used properly.
Thanks
Anonymous(Private) January 26, 2016 at 11:56 am #35307I went ahead and disabled all the plugins other than S&F Pro. The problem still persisted in the Novavideo theme I want to use, but does not happen in a couple other plugins I tested. On the site I’ve noticed that there is a “Sort by” option at the top above the videos. Could this be what’s conflicting with it? There is no option to disable this in the theme options and I don’t know while .php file it corresponds to.
Edit:
One more thing I just noticed is that if I check the box “Top Cringe” which returns all four videos, it returns a result of all four videos (which it should) but the search reads “Search results for “” (2 videos)” which would be the result if I had only searched on the “Autism” tag.Anonymous(Private) January 27, 2016 at 11:36 am #35436I think the interference might be coming from $category_videos. If there is a way to disable this (I don’t want it anyways), it would probably solve the problem with S&F Pro. However there is no way to disable it in the theme options. Is there something I can edit to remove it?
-
AuthorPosts