Search serialize data from meta vaule in wordpress

Convert your Request(GET,POST) value into serialize array form 

like this
serialize(strval($formValue));

then add it to meta query like below and do not forgot to use Compare operator "LIKE".


array_push($query_array, array('key' => 'view_by_type','value' => serialize(strval($viewType)),'compare'=> 'LIKE'));

Leave a Reply