-1, 'page' => -1, 'venue' => $venue_id, 'organizer' => $organizer_id, 'hide_private' => $hide_private, ) ); $total_events = is_countable( $events ) ? count( $events ) : 0; if ( $page > 0 ) { $events = array_slice( $events, ( $page - 1 ) * $per_page, $per_page ); } else { // return the specified number if ( $count > 0 ) $events = array_slice( $events, 0, $count ); } get_header(); ?>