Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion inc/class-eventbrite-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ protected function set_api_params() {
// We need the Eventbrite user ID (or an organizer) if we're getting only public events.
if ( ! isset( $this->query_vars['display_private'] ) || true !== $this->query_vars['display_private'] ) {
// Set sorting.
$params['sort_by'] = 'date';
if ( ! empty( $this->query_vars['sort_by'] ) ) {
$params['sort_by'] = $this->query_vars['sort_by'];
} else {
$params['sort_by'] = 'date';
}

// Set the user ID if we don't have a specified organizer.
if ( ! empty( $this->query_vars['organizer_id'] ) ) {
Expand Down