我有一个常规选择的下拉列表。我需要一个多选下拉列表。我在里面添加了JavaScript脚本文件header.php
, 现在我需要添加字符串multiple="multiple"
.
在firebug I中multiple = "multiple"
在字符串中
现在我需要添加字符串multiple="multiple"
但我不知道该怎么做:
<?php
$terms = wp_get_post_terms( $post->ID,"listing_category" );
$terms = isset($terms[0]) ? $terms[0]->term_id : "";
if(get_field("custom_attributes_input_types","options") == "Dropdowns"):
wp_dropdown_categories(
array(
\'taxonomy\' => \'listing_category\',
\'hiera`enter code here`rchical\'=>1,
\'show_option_none\'=>__(\'Choose Category:\',\'um_lang\'),
\'name\' => \'listing_category\',
\'hide_empty\' => false,
\'selected\' => $terms
)
);
else:
?>