Forums › Forums › Search & Filter Pro › Checkbox Tags not searching properly
- This topic has 17 replies, 2 voices, and was last updated 8 years, 9 months ago by Anonymous.
-
Anonymous(Private) January 27, 2016 at 11:36 am #35436
I 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?
Ross Moderator(Private) January 28, 2016 at 5:03 pm #35592Ok I figured out the issue.
In your search form you have “detect defaults from current page” set to true.
Which is fine.
This means if you are on a tag, category or taxonomy archive, S&F will preselect the correct options in the search form itself.
So with this setting enabled, S&F will use the standard wordpress function for checking if the current page is a taxonomy archive (or tag or cat)
https://codex.wordpress.org/Function_Reference/is_tax
If true, then it will try to select defaults.
For some reason, when on the search page, is_tax is being set to true, so for some reason WP thinks this is a taxonomy archive.
Whats even stranger is, the standard WordPress search page:
http://www.supercringe.com/?s=a
Is also being picked up as a taxonomy archive – this cannot be true!
Therefor there is something in your code that is incorrectly modifying your queries or setting these parameters so even WordPress cannot properly detect if the current page is a taxonomy archive or not – and if WP is unable to do this, the S&F certainly cannot.
Either you must resolve the issue in your theme (or other plugin), or disable this option in Search & Filter.
Thanks
-
AuthorPosts