Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

pinned meta

$meta_query = array(
	array(
		'key'     => 'pinned',
		'value'   => 'true',
		'compare' => '=',
		'type'    => 'CHAR',
	),
);