How to make a 'City' filter for [eo_events]?

WordPress Event Management, Calendars & Registration Forums General Question How to make a 'City' filter for [eo_events]?

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 8 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25586

    Hi,

    I want to add an events list to a custom page via shortcode. However, the events list needs to be
    filterable by the venue’s cities (unique). How’ that done best?

    That’s what I need:

    a) Display filter controls above events list (another shortcode is possible here) -> How to retrieve all (unique) cities from current venues?

    b) Have the events list reloaded (ideal: via Ajax) filtered by the city chosen.

    Thanks,
    Ron

    Ron
    #25600

    Hi Ron,

    You can do this with the calendar shortcode – but it’s appearance isn’t readily customisable. Or the posterboard – this is a bit easier to customise, but is not meant to be a ‘list’ but a grid.

    If you want to do something yourself, it’s probably just as easy not to use [eo_events]. But in any case:

    a) eo_get_venue_cities() (no documentation unfortunately, but returns an array of cities as entered in the venue address).

    b) Have some javascript listen for a click-event on a city (it will depend on how you want the filter to behave). Make an ajax request for events (specifying the filter criteria), and in the callback search for events in that city. You can then either render the HTML PHP side and send that to inject into the page, or just send the data and render it in JavaScript. The latter is arguably ‘better’, but you may have preference of programming language.

    Stephen Harris
    #25619

    Stephen,

    I’ve been trying to reach out to you via direct email (and contact form here as well as from your personal website). Haven’t heard back anything yet, I’d kindly like to ask if you did receive my emails?

    I’ve got some custom development work regarding EO and I was wondering, if you’d be available for any paid support with that?

    Pls, find my request in your inbox. Looking forward to hearing from you soon, Ron

    • This reply was modified 8 years, 1 month ago by  Ron.
    Ron
    #25621

    Hi Ron,

    My apologies. I have been focussing on the forums, while working through a backlog of new-year e-mails. I’ve just replied to your e-mail.

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.