Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

show_post_in_home

$meta_query = array(
	array(
		'key'     => 'show_post_in_home',
		'value'   => 'yes',
		'compare' => '=',
		'type'    => 'CHAR',
	),
);