• Resolved CroiSciento

    (@croisciento)


    Hello,

    I asked a question few days ago to know how to submit when checking the checkboxes. But I am facing a problem right now, when I’m unchecking them I would like to go back to my custom post type archive page. But the slug looks like this : ‘?post_types=mypost_type’.

    How can I fix this problem, please?

    Thanks for your help.

    https://wordpress.org/plugins/search-filter/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ross Morsali

    (@designsandcode)

    Hey CroiSciento

    This is not technically possible… because you use a custom post type, when you submit the form – even with all the tickboxes unticked, a user (and the plugin) still expects that you wish to do a search for a custom post type… Which is why you get the URL you mention…. It is a search results page – and you performed a search….

    Let me have a think about this and get back to you – but I can’t think of any easy way to implement this…

    Thanks

    Thread Starter CroiSciento

    (@croisciento)

    I’m using checkboxes, there should be a way to redirect the user to the custom post type archive if no checkboxes are selected, right?

    Thanks again.

    Plugin Author Ross Morsali

    (@designsandcode)

    Hey CroiSciento, there is an options to direct the user to a page when there is a blank search but it considers the post type in the URL to not be a blank search.

    I’ll do an update which fixes this and then you can use the param empty_search_url for the redirect – see the docs: http://docs.designsandcode.com/search-filter/#options

    Thanks

    Thread Starter CroiSciento

    (@croisciento)

    Hey, thanks alot for your help you’re really helping me out on this one. 😉

    I’ll check the updates, thanks again.

    Plugin Author Ross Morsali

    (@designsandcode)

    No worries, won’t be for a few days at least have some important work to do on the pro version 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem when unchecking checkboxes’ is closed to new replies.