function cwp_taxonomy_dropdown_meta_box($post, $box)
{
    $tax_name = esc_attr(substr($box['id'], 34));
    $taxonomy = get_taxonomy($tax_name);
    $terms = wp_get_object_terms($post->ID, $taxonomy->name);
    $term = $terms[0];
    cwp_dropdown_taxonomy($taxonomy->name, "name=taxonomy_dropdown[" . $taxonomy->name . ']&hide_empty=0&selected=' . $term->term_id . '&show_option_all=Select ' . ucfirst($taxonomy->name));
    ?>
	<p>Add New <?php 
    echo ucfirst($taxonomy->name);
    ?>
</p>
	
	<span class="">
	    <label class="screen-reader-text" for="new-tag-<?php 
    echo $tax_name;
    ?>
"><?php 
    echo $box['title'];
    ?>
</label>
	    <input type="text" id="" name="newtaxterm[<?php 
Example #2
0
" name="doaction" id="doaction" class="button-secondary action" />
    		<?php 
wp_nonce_field('bulk-posts');
?>
    		
    		<?php 
foreach ((array) $page->filters as $filter) {
    switch ($filter['type']) {
        case 'taxonomy':
            if ($filter['taxonomy'] == 'category') {
                $dropdown_options = array('show_option_all' => __('View all categories'), 'hide_empty' => 0, 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', 'selected' => $_GET['cat']);
                $dropdown_options['child_of'] = $filter['child_of'] ? $filter['child_of'] : null;
                wp_dropdown_categories($dropdown_options);
            } else {
                $dropdown_options = array('show_option_all' => __('View all ' . $filter['multiple']), 'hide_empty' => 0, 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', 'selected' => $_GET[$filter['taxonomy']], 'name' => $filter['taxonomy']);
                cwp_dropdown_taxonomy($filter['taxonomy'], $dropdown_options);
            }
            break;
        case 'custom':
            call_user_func_array($filter['callback'], array());
        default:
            break;
    }
}
?>
    		<?php 
do_action('restrict_manage_posts');
?>
    		<input type="submit" id="post-query-submit" value="<?php 
esc_attr_e('Filter');
?>