custom page with post content using read more
You’re actually doing this in a way that is far more complicated than necessary. The foreach is actually excessive. What you want to do is something more like this: $args = array( ‘posts_per_page’ => ‘-1’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘category__in’ => $quicksand_categories ); $query = new WP_Query( $args ); if ($query -> have_posts() … Read more