我正在尝试:
// 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;
}
但是它不起作用