Title: Multiple selected checkboxes issue
Last modified: August 21, 2016

---

# Multiple selected checkboxes issue

 *  Resolved [miuiux](https://wordpress.org/support/users/miuiux/)
 * (@miuiux)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-selected-checkboxes-issue/)
 * Hello,
 * I’m having an issue with multiple selected checkboxes of custom taxonomy. The
   result only shows posts from the first selected category.
 * For example, if I select hair, dress, shoes, results will only retrieve posts
   from the first category – hair.
 * How can I retrieve posts from all selected categories?
 * If it helps this is my current code:
 *     ```
       <?php echo do_shortcode( '[searchandfilter fields="supplier-type,ni-county" types="checkbox,checkbox" headings="Categories,Counties" submit_label="Filter" operators="or,or" add_search_param="1" post_types="post_type"]' ); ?>
       ```
   
 * Thank you for creating a great plugin & all your help here.
 * Mina
 * [https://wordpress.org/plugins/search-filter/](https://wordpress.org/plugins/search-filter/)

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

 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-selected-checkboxes-issue/#post-4966592)
 * Hey miuiux
 * Just wondering, do you have a post type called “post_type”? Not sure if thats
   setup right to start?
 * Not sure why your searches are only the first category selected, do you have 
   a link I could check out?
 * Thanks
 *  Thread Starter [miuiux](https://wordpress.org/support/users/miuiux/)
 * (@miuiux)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-selected-checkboxes-issue/#post-4966594)
 * I don’t have a post_type called “post_type”. I assumed post_types referred to
   type of post.
 * Here’s the page I was working on:
    [http://www.whisperingwillowni.com/ni-wedding-suppliers/](http://www.whisperingwillowni.com/ni-wedding-suppliers/)
 * Thank you for following up.
 * Mina
 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/multiple-selected-checkboxes-issue/#post-4966652)
 * Hey miuiux,
 * I would start by getting rid of the post types argument, you are supposed to 
   add the post types you wish to search, so this may be `post`, `page` or any custom
   post type you have created…
 * So use your form like:
 *     ```
       <?php echo do_shortcode( '[searchandfilter fields="supplier-type,ni-county" types="checkbox,checkbox" headings="Categories,Counties" submit_label="Filter" operators="or,or" add_search_param="1"]' ); ?>
       ```
   
 * See if that helps? However I do not think this is the real cause of your problem:/
 * Thanks

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

The topic ‘Multiple selected checkboxes issue’ 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/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [custom taxonomy](https://wordpress.org/support/topic-tag/custom-taxonomy/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [multiple checkbox](https://wordpress.org/support/topic-tag/multiple-checkbox/)

 * 3 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/multiple-selected-checkboxes-issue/#post-4966652)
 * Status: resolved