Don't hide empty positions in events
This commit is contained in:
@@ -94,6 +94,7 @@ if ( is_array( $teams ) ):
|
|||||||
if ( $split_positions ) {
|
if ( $split_positions ) {
|
||||||
$positions = get_terms( 'sp_position', array(
|
$positions = get_terms( 'sp_position', array(
|
||||||
'orderby' => 'slug',
|
'orderby' => 'slug',
|
||||||
|
'hide_empty' => 0,
|
||||||
) );
|
) );
|
||||||
|
|
||||||
foreach ( $positions as $position_index => $position ) {
|
foreach ( $positions as $position_index => $position ) {
|
||||||
@@ -112,6 +113,7 @@ if ( is_array( $teams ) ):
|
|||||||
// Initialize Sublabels
|
// Initialize Sublabels
|
||||||
$sublabels = $labels;
|
$sublabels = $labels;
|
||||||
|
|
||||||
|
// Get performance with position
|
||||||
$performance_labels = get_posts( array(
|
$performance_labels = get_posts( array(
|
||||||
'post_type' => 'sp_performance',
|
'post_type' => 'sp_performance',
|
||||||
'posts_per_page' => -1,
|
'posts_per_page' => -1,
|
||||||
@@ -195,6 +197,7 @@ if ( is_array( $teams ) ):
|
|||||||
if ( $split_positions ) {
|
if ( $split_positions ) {
|
||||||
$positions = get_terms( 'sp_position', array(
|
$positions = get_terms( 'sp_position', array(
|
||||||
'orderby' => 'slug',
|
'orderby' => 'slug',
|
||||||
|
'hide_empty' => 0,
|
||||||
) );
|
) );
|
||||||
|
|
||||||
foreach ( $positions as $position_index => $position ) {
|
foreach ( $positions as $position_index => $position ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user