Title: Query posts with value from checkboxes array?
Last modified: August 24, 2016

---

# Query posts with value from checkboxes array?

 *  Resolved [jaydeesigns](https://wordpress.org/support/users/jaydeesigns/)
 * (@jaydeesigns)
 * [11 years ago](https://wordpress.org/support/topic/query-posts-with-value-from-checkboxes-array/)
 * Hi people. I hope I can find some help here.
    I’ve set up a custom fields group
   with a multiple checkbox field. This field has 4 options and I would like to 
   create a query that would display posts including one value from that array.
 * For example:
    Post #1 has checkbox options A,B,C,D checked Post #2 has checkbox
   options A,B,C checked Post #3 has checkbox option A checked.
 * I want to display only posts with option D checked. So in this case only Post#
   1 should show.
 * Is this possible? how can I test posts to see if the value I want is in the array?
   
   Thank you! Jay
 * [https://wordpress.org/plugins/types/](https://wordpress.org/plugins/types/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [jaydeesigns](https://wordpress.org/support/users/jaydeesigns/)
 * (@jaydeesigns)
 * [11 years ago](https://wordpress.org/support/topic/query-posts-with-value-from-checkboxes-array/#post-6148584)
 * Alright nevermind. I see checkboxes arrays are serialized and it would be quite
   tedious to get values from them. So in case anyone is trying to achieve something
   similar. It would be a better idea to create separate individual checkbox fields
   and create the query with true/false (0,1) values.

Viewing 1 replies (of 1 total)

The topic ‘Query posts with value from checkboxes array?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [checkboxes](https://wordpress.org/support/topic-tag/checkboxes/)
 * [meta_value)](https://wordpress.org/support/topic-tag/meta_value/)

 * 1 reply
 * 1 participant
 * Last reply from: [jaydeesigns](https://wordpress.org/support/users/jaydeesigns/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/query-posts-with-value-from-checkboxes-array/#post-6148584)
 * Status: resolved