wp\\U get\\U post\\U条款订单不工作
我的代码在这里
query_posts(array(\'post_type\' => \'product\',\'post__in\' => $product_ids,));
while (have_posts()) : the_post();
global $post;
$args = array(\'orderby\' => \'name\', \'order\' => \'ASC\', \'fields\' => \'all\');
$product_terms = wp_get_object_terms($post->ID, \'productcategory\',$args);
if(!empty($product_terms)){
if(!is_wp_error( $product_terms )){
echo \'<ul>\';
foreach($product_terms as $term){
echo \'<li><a href="\'.get_term_link($term->slug, \'product\').\'">\'.$term->name.\'</a></li>\';
}
echo \'</ul>\';
}
}
endwhile;
我在文档中读到,它支持数组$args按“名称”订购术语,但我不知道为什么它不起作用