如何在下拉菜单中显示wordpress标签?

如何在下拉菜单中显示wordpress标签?,wordpress,drop-down-menu,tags,taxonomy,Wordpress,Drop Down Menu,Tags,Taxonomy,来自的代码段是: <h2><?php _e('Posts by Tags'); ?></h2> <form action="<?php bloginfo('url'); ?>/" method="get"> <div> <?php $select = wp_dropdown_categories('taxonomy=post_tag&show_option_none=Select tag&show_c

来自的代码段是:


<h2><?php _e('Posts by Tags'); ?></h2>
<form action="<?php bloginfo('url'); ?>/" method="get">
<div>
<?php
$select = wp_dropdown_categories('taxonomy=post_tag&show_option_none=Select tag&show_count=1&orderby=name&echo=0');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
<noscript><div><input type="submit" value="View" /></div></noscript>
</div></form>