How to display certain category in the loop from WordPress default post type?
Of course it displays all posts… You create your own custom WP_Query, but then you ignore it and use global one 😉 Here’s the correct code: <?php $args = array( ‘post_type’ => ‘post’, ‘category_name’ => ‘wedding-venue’, ‘posts_per_page’ => 8, ‘facetwp’ => true, ); $query = new WP_Query( $args ); ?> <?php if ( $query->have_posts() ) … Read more