我試圖通過分類ID訂購我的WordPress查詢,但是想要靜態設置訂單。WordPress查詢參數設置靜態訂單
下面是設置的順序的參數:
'orderby' => 'ID',
'order' => 'ASC',
是否有可能設置的 '秩序' 靜態
像這樣:
'order' => '50,49,48,51',
我已經使用post_in嘗試屬性,但仍未看到訂單更新:
$args = array(
'post_type' => $custom_post_type,
"$taxonomy" => $taxonomy_term->slug,
'post_status' => 'publish',
'post_in' => array(5,47,48,49,46,50),
'orderby' => 'post_in',
'posts_per_page' => 9999
);