Get players from current season only
-
I’m using the following code to get all of the current players for my club:
$args = array( 'post_type' => 'sp_player', 'orderby' => 'title', 'posts_per_page' => -1, 'order' => 'asc' ); $players = new WP_Query($args);
Is there anything I can add in at this stage, or during the loop after, to get only players from the current season?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get players from current season only’ is closed to new replies.