[ad_1]
What is the query reference I can use to show only posts, but not pages, when using a query loop to show all posts? Currently, the “pages” show up in the list too.
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
$pages = new WP_Query(array(
‘post_type’ => ‘page’
));
$posts = new WP_Query(array(
‘post_type’ => ‘post’
));