Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

DKBS 0

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'Max_plads_ved_stolerækker',
		'value'   => '$max_attend',
		'compare' => '>=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'Værelser_i_alt',
		'value'   => '$max_rooms',
		'compare' => '>=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => 'cf_query',
		'value'   => 'data',
		'compare' => '=',
	),
	array(
		'relation' => 'OR',
		array(
			'key'     => 'Adresse_2',
			'value'   => '$custom_text',
			'compare' => 'LIKE',
			'type'    => 'UNSIGNED',
		),
		array(
			'key'     => 'centerbeskrivelse',
			'value'   => '"'.$custom_text.'"',
			'compare' => 'LIKE',
			'type'    => 'UNSIGNED',
		),
		array(
			'key'     => 'center_name',
			'value'   => '$custom_text',
			'compare' => 'LIKE',
		),
	),
);