Support » Plugin: Eventbrite API » Filtering events by search parameter

  • Resolved Andy14



    I’m trying to filter a set of events (created with Eventbrite_Query) by the WordPress search parameter. Given Eventbrite_Query extends WP_Query I thought I could just add that search parameter to the array:

    $args = array(
      'display_private' => true,
      's' => $s
    $search_results = new Eventbrite_Query($args);

    … but that just returns all the events. Is there another approach I should be trying here?


    • This topic was modified 1 year, 11 months ago by  .
    • This topic was modified 1 year, 11 months ago by  .
Viewing 1 replies (of 1 total)
  • Plugin Author Automattic


    Hi Andy,

    No, I’m afraid that’s not implemented (I believe it was more complicated do to the fact that we’re sourcing an API result, rather than the WP db). You can see the supported arguments in the plugin’s README (under Classes > Eventbrite_Query).

    I think your best approach is to get the results of your Eventbrite_Query, then filter using array_filter or something similar before outputting the events.

Viewing 1 replies (of 1 total)
  • The topic ‘Filtering events by search parameter’ is closed to new replies.