Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Faq

Faq

// WP_Query arguments
$args = array(
	'post_type'              => array( 'faq' ),
	'posts_per_page'         => '20',
	'order'                  => 'ASC',
	'orderby'                => 'title',
);

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

// The Loop
if ( $queryFaq->have_posts() ) {
	while ( $queryFaq->have_posts() ) {
		$queryFaq->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();