這是我運行的顯示2個類別帖子的自定義查詢。 我已經安裝了WordPress Plugin「精選文章」,但精選文章並未排除在顯示列表中。排除自定義查詢中的精選帖子WordPress
<?php
$category_id = get_cat_ID($strReports || $strInsights);
$custom_query = new WP_Query('cat=' .$category_id. '&featured=no&posts_per_page=6&order=desc');
while($custom_query->have_posts()) : $custom_query->the_post();
?>
HTML Content Here
<?php endwhile; ?>
<?php wp_reset_query(); // reset the query ?>
確定功能=否是正確的查詢參數嗎? – Blackbam