如何在此上添加排序功能?

时间:2018-12-06 16:56:50

标签: woocommerce

我正在尝试:

// get the corresponding term object
$term_obj = get_term_by( 'slug', $term_slug, $term_key );

// If the term name matches we stop the loops
if( $term_obj->name == $term_name ){ 
    $second_loop_stoped = true;
    $term_name['order'] = 'ASC';
    break;
}

但是它不起作用

0 个答案:

没有答案