Fix drop down taxonomies function to show all
This commit is contained in:
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user