Fix drop down taxonomies function to show all

This commit is contained in:
Brian Miyaji
2014-01-11 17:04:05 +11:00
parent b288955a1f
commit 81a43185b8

View File

@@ -185,10 +185,11 @@ if ( !function_exists( 'sportspress_dropdown_taxonomies' ) ) {
'taxonomy' => null, 'taxonomy' => null,
'name' => null, 'name' => null,
'selected' => null, 'selected' => null,
'value' => 'slug' 'hide_empty' => false,
'value' => 'slug',
); );
$args = array_merge( $defaults, $args ); $args = array_merge( $defaults, $args );
$terms = get_terms( $args['taxonomy'] ); $terms = get_terms( $args['taxonomy'], $args );
$name = ( $args['name'] ) ? $args['name'] : $args['taxonomy']; $name = ( $args['name'] ) ? $args['name'] : $args['taxonomy'];
if ( $terms ) { if ( $terms ) {
printf( '<select name="%s" class="postform">', $name ); printf( '<select name="%s" class="postform">', $name );