diff --git a/admin-functions.php b/admin-functions.php index 13a96421..ed5bf6d5 100644 --- a/admin-functions.php +++ b/admin-functions.php @@ -185,10 +185,11 @@ if ( !function_exists( 'sportspress_dropdown_taxonomies' ) ) { 'taxonomy' => null, 'name' => null, 'selected' => null, - 'value' => 'slug' + 'hide_empty' => false, + 'value' => 'slug', ); $args = array_merge( $defaults, $args ); - $terms = get_terms( $args['taxonomy'] ); + $terms = get_terms( $args['taxonomy'], $args ); $name = ( $args['name'] ) ? $args['name'] : $args['taxonomy']; if ( $terms ) { printf( '