Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

flight query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'flight' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => true,
);

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