Hi,
I use the below code to get different post type, but my page loads,
it sucks my whole system process.
$args = array(
‘orderby’ => ‘post_date’,
‘order’ => ‘DESC’,
‘post_type’ => ‘post-faq’,
‘post_status’ => ‘publish’
);
return $faq_array = query_posts( $args );
We can try the WP_Query()
WP_Query