Title: Problem when unchecking checkboxes
Last modified: August 21, 2016

---

# Problem when unchecking checkboxes

 *  Resolved [CroiSciento](https://wordpress.org/support/users/croisciento/)
 * (@croisciento)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/)
 * 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/](https://wordpress.org/plugins/search-filter/)

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

 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952518)
 * 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](https://wordpress.org/support/users/croisciento/)
 * (@croisciento)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952521)
 * 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](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952553)
 * 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](http://docs.designsandcode.com/search-filter/#options)
 * Thanks
 *  Thread Starter [CroiSciento](https://wordpress.org/support/users/croisciento/)
 * (@croisciento)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952575)
 * 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](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952582)
 * 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.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/problem-when-unchecking-checkboxes/#post-4952582)
 * Status: resolved