Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

show in search

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'showinsearch',
		'value'   => 'true',
		'compare' => '=',
		'type'    => 'BINARY',
	),
);