• Resolved iheijoushin

    (@iheijoushin)


    We’re running the Multi Event Theme, but there does not seem to be an easy way to offer clients the ability to filter our events list in any meaningful way.

    An example, of what I’m trying to do can be found right on Eventbrite’s own site right below the slider at the top: https://www.eventbrite.com

    Is such a thing possible? I’ve started wading into the Eventbrite API documentation but am not sure about the syntax or how to make options like Location and Category selectable on the same page.

    Thanks so much for any assistance.

    https://www.ads-software.com/plugins/eventbrite-api/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Automattic

    (@automattic)

    Hi iheljoushin,

    The Multi Event Eventbrite theme is intended for use with this other Eventbrite plugin (confusing, I know): https://www.ads-software.com/plugins/eventbrite-services/ Just a warning, in case you see results you’re not expecting.

    You’re right, neither plugin offers a built-in way for filtering beyond organizer and/or location links. This plugin (Eventbrite API) includes tools to create a system like you’ve pointed out on Eventbrite’s site, but it would require a developer to execute it. Because WordPress themes vary so much in their markup, it’s tough to go beyond the default post-style display that’s included.

    To start towards the Eventbrite example, you would need to create the form in a page template, and then have that form assemble a URL for the API call. Depending on which endpoint you use (events/search or user/owned_events), you’ll also need to do some filtering of the API results within your own code. The methods in the Manager class will be most useful to you in this situation. Hope that helps!

    Thread Starter iheijoushin

    (@iheijoushin)

    Thanks for your reply, Automattic!

    It sounds like it might be easier to just create a separate page for each location that hosts events and roll back to just using the Eventbrite API.

    I would guess that means creating separate eventbrite-index.php’s for each location within the tmpl folder and then applying eventbrite-index-site1.php to a corresponding named page. Would that work?

    Line 26 of the index file seems to maybe be what I am looking for:

    // 'venue_id' => null, // integer

    Would replacing null with the venue_id provided by EventBrite work? Thanks again for your assistance.

    Plugin Author Automattic

    (@automattic)

    I would guess that means creating separate eventbrite-index.php’s for each location within the tmpl folder and then applying eventbrite-index-site1.php to a corresponding named page. Would that work?

    It’s actually best to create them in your theme directory; that way, WordPress discovers and handles them properly and automatically by default (the only way we can get away with it loading from the plugin is with a less-than-elegant hack).

    Would replacing null with the venue_id provided by EventBrite work?

    Yes, that would work. You can create a page for each venue on your site, and assign each to their respective page template with the matching venue ID in the args.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search events and filter by location or category’ is closed to new replies.