Omit player performance with equation or text format from player statistics
This commit is contained in:
@@ -436,7 +436,20 @@ class SP_Player_List extends SP_Custom_Post {
|
||||
'numberposts' => -1,
|
||||
'posts_per_page' => -1,
|
||||
'orderby' => 'menu_order',
|
||||
'order' => 'ASC'
|
||||
'order' => 'ASC',
|
||||
'meta_query' => array(
|
||||
'relation' => 'OR',
|
||||
array(
|
||||
'key' => 'sp_format',
|
||||
'value' => 'number',
|
||||
'compare' => 'NOT EXISTS',
|
||||
),
|
||||
array(
|
||||
'key' => 'sp_format',
|
||||
'value' => array( 'equation', 'text' ),
|
||||
'compare' => 'NOT IN',
|
||||
),
|
||||
),
|
||||
);
|
||||
$stats = get_posts( $args );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user