Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Untitled Snippet

// WP_Query arguments
$args = array(
	'meta_query'             => array(
		array(
			'key'     => 'export_status',
			'value'   => 'to_export',
		),
	),
);

// The Query
$query = new WP_Query( $args );