Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meta SJ

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'lp_custom_course_status',
		'value'   => 'on_going',
	),
);