Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test

$meta_query = array(
	array(
		'key'     => 'fname',
		'value'   => 'rahul',
		'compare' => '=',
		'type'    => 'CHAR',
	),
);