Support

Account

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'
      )
    )