Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

alle kurse nach infopage id

// WP_Query arguments
$args = array(
	'post_type'              => array( 'tc_events' ),
	'post_status'            => array( 'publish' ),
	'order'                  => 'ASC',
	'orderby'                => 'title',
	'meta_query'             => array(
		'relation' => 'AND',
		array(
			'key'     => 'infopage_id',
			'value'   => '26082',
			'compare' => '=',
			'type'    => 'NUMERIC',
		),
	),
);

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