JeffreyWay/Easy-WordPress-Custom-Post-Types — comment on commit a6181e5193318bf9d2e4c74df6dbdc2556d02d1b
File:  line 0
By jlapitan:

one more thing can the code below be added on your class? it is for Adding a Taxonomy Filter for a Custom Post Type

labels->name;

// output html for taxonomy dropdown filter
echo "";
echo "
Show All $tax_name
";
generate_taxonomy_options($tax_slug,0,0);
echo "";
}
}
}

function generate_taxonomy_options($tax_slug, $parent = '', $level = 0) {
$args = array('show_empty' => 1);
if(!is_null($parent)) {
$args = array('parent' => $parent);
}
$terms = get_terms($tax_slug,$args);
$tab='';
for($i=0;$i<$level;$i++){
$tab.='--';
}
foreach ($terms as $term) {
// output each select option line, check against the last $_GET to show the current option selected
echo '
' .$tab. $term->name .' (' . $term->count .')
';
generate_taxonomy_options($tax_slug, $term->term_id, $level+1);
}

}

?>

i got the code from http://wpsmith.net/