0
我想我的自定义后类型packages
具有先进的自定义字段排序package_order_id
:排序高级自定义字段
<?php
global $wp_query;
query_posts(array(
'post_type' => 'packages',
'meta_key' => 'package_order_id',
'orderby' => 'meta_value_num',
'order' => 'DESC'
));
while(have_posts()) : the_post();
?>
我寻找其他的答案后导致本我仍然无法工作。
我在做什么错?
你看过https://www.advancedcustomfields.com/resources/orde-posts-by-custom-fields/? – Mikk3lRo
是的,这是我第一次看到。 – Jess