["post", "page"], "posts_per_page" => 10, // Set the number of posts per page "paged" => $paged, // Set the page number "tag_id" => $tag, "cat" => $category, // Filter by category ID //'tag__not_in' => array(120), Filter by excluding a specific tag ID "post_status" => "publish", "post__not_in" => [ 2421, 796, 324, 1338, 1743, 263, 260, 3, 1615, 1713, 360, 906, 1071, 339, 336, ], ]; $the_query = new WP_Query($args); Excerpt::getInstance(); get_header(); ?>
have_posts()) { while ($the_query->have_posts()): $the_query->the_post(); $postcount++; ?>