Omit player performance with equation or text format from player statistics

This commit is contained in:
Brian Miyaji
2016-11-07 14:16:17 +11:00
parent 987d3df580
commit 8455c99901
5 changed files with 61 additions and 4 deletions

View File

@@ -125,6 +125,19 @@ class SP_Player extends SP_Custom_Post {
'posts_per_page' => 100,
'orderby' => 'menu_order',
'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',
),
),
);
$posts = get_posts( $args );