标签: wordpress
我希望在用户提交表单数据时选择类别分类中的单个类别的ID
代码:
$options = array(); $terms = get_resume_categories(); foreach ( $terms as $term ) $options[ $term->slug ] = $term->name; return $options;
怎么做?