'day', 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'size' => 'sportspress-fit-medium', 'show_player_birthday' => get_option( 'sportspress_player_show_birthday', 'no' ) == 'yes' ? true : false, 'show_staff_birthday' => get_option( 'sportspress_staff_show_birthday', 'no' ) == 'yes' ? true : false, 'link_players' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false, 'link_staff' => get_option( 'sportspress_link_staff', 'yes' ) == 'yes' ? true : false, ); extract( $defaults, EXTR_SKIP ); $args = array( 'post_type' => array( 'sp_player', 'sp_staff' ), 'numberposts' => -1, 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'ASC', 'monthnum' => date('n'), ); if ( $date == 'day' ) { $args['day'] = date('j'); } $posts = get_posts( $args ); foreach ( $posts as $post ) { echo '\n"; }