Home › Forums › General Issues › GET (url) parameters for data arrays? › Reply To: GET (url) parameters for data arrays?
This document will probably help you http://www.advancedcustomfields.com/resources/querying-relationship-fields/
Chackbox fields are stored as arrays similar to the way relationship fields are stored.
So your meta query would look something like this.
meta_query' => array(
array(
'key' => 'music-taste', // name of custom field
'value' => '"' . $taste . '"', // matches exaclty "123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.