I have a custom post type called "on-air" that included a custom-field called "daysonair". The form for this has checkboxes for each day of the week.
When you add/update a post, the checked items are stored as an array in the custom-field.
I can't figure out how to add that custom-field to my WP_Query() search:
array( 'key' => 'daysonair',
'value' => 'Thursday',
'compare' => 'IN' )
I've tried numerous types of comparisons with no luck.
The data in the database is:
a:5:{s:6:"Monday";s:6:"Monday";s:7:"Tuesday";s:7:"Tuesday";s:9:"Wednesday";s:9:"Wednesday";s:8:"Thursday";s:8:"Thursday";s:6:"Friday";s:6:"Friday";}
Where all the weekdays have been checked. I'm just looking to see if Thursday is in the array.