1
我在自定義帖子類型中有4個文本字段類型,這些是brand_fbn
,model_fbn
,year_fbn
和plate_number
。我想對文章進行排序,編號爲brand_fbn
- model_fbn
- year_fbn
- plate_number
。但是我堅持這一說法,在多個自定義字段中的自定義帖子類型中對帖子進行排序acf
這是我的代碼(錯誤)
$ins = new WP_Query(array(
"post_type" => "application-list",
"author" => $current_user->ID,
"meta_key" => array("year_fbn","plate_number"),
"orderby" => "meta_value ",
"order" => "ASC"
));
我知道這條線不會工作,"meta_key"=>array("year_fbn","plate_number"),
有人可以幫助我。感謝