Forums Forums Search & Filter Pro Checkbox Tags not searching properly

Viewing 10 posts - 1 through 10 (of 17 total)
  • Ross Moderator
    #35153

    By any chance are you doing something with the filter sf_input_object_pre?

    https://gist.github.com/rmorse/7b59b45a14b1ca179868

    Thanks

    Anonymous
    #35155

    I haven’t done any editing to any code. Even when I stripped it down to bare-bones plugins (Google Analytics, etc.) I still had the problem.

    Ross Moderator
    #35156

    So 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

    Anonymous
    #35183
    This reply has been marked as private.
    Anonymous
    #35184
    This reply has been marked as private.
    Ross Moderator
    #35194

    Add 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
    #35208

    It’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
    #35210

    Hi Ryan

    So taking a look, it does seem like something in your setup must be modifying the forms in S&F or the $_GET parameters 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
    #35307

    I 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
    #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?

Viewing 10 posts - 1 through 10 (of 17 total)