• Hi everyone!
    I using plugin Magoc fieds 2? and i made custom field type CHECKBOX LIST( field name – col, options – opt1,opt2,opt3). Now i can’t query posts with checked opt2, for example.
    fields type radio button displaying and querying very well with
    get_post_meta($post->ID, 'field_type_radio', true);
    and
    $args = array('post_type' => 'mypost', 'meta_key' => 'my_key', 'meta_value' => 'my_value' )
    but i can not query posts by meta_key, if meta_key type is checkbox list.
    This is result of print_r of values:
    [property_col] => Array ( [0] => a:2:{i:0;s:4:"opt2";i:1;s:5:"opt3";} )
    opt1 – unchecked.
    Please help me to query posts by checked values!
    Thanks!

  • The topic ‘Help with query by custom fields!’ is closed to new replies.