Events Made Easy Forums How do I … List events by location category?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #54719
    Anonymous
    Inactive

    Hi

    I import a lot of events with EME sync. Is it a way to list them by the categories which the locations are in – #_LOCATIONCATEGORIES or similar?
    I know about [eme_events category=1,3], but that only lists events which I have categorized myself.

    #54720
    Franky
    Keymaster

    Use [eme_locations], see http://www.e-dynamics.be/wordpress/?cat=42
    And then use a template to display events per location in the list. This template should contain for example:
    [events_list scope=future limit=5 location_id=this_location]

    #54725
    Anonymous
    Inactive

    Thanks for helping:)

    I made a template which only contains your example code and then used the [eme_locations template_id=1] shortcode on a page. This produced a listing of all my events(the 3 pre-installed events). Where do I go from here? I added one of the locations to category 1 – then tried to add category=1 to the shortcode with no luck, and the same with category=1 in the template.

    #54730
    Franky
    Keymaster

    Try this as content of the template:
    [events_list scope=future limit=5 location_id=#_LOCATIONID]
    and add indeed category=1 to the eme_locations shortcode to limit it to that category.

    #54731
    Anonymous
    Inactive

    Thanks! Resolved 🙂

    #54732
    Franky
    Keymaster

    btw: shortcode “events_list” has been renamed to “eme_events” some time ago, maybe update your template to use the new naming convention. I updated the doc 🙂

    #54745
    Anonymous
    Inactive

    I will! One more question though.. This outputs a list like this: Location 1- Its ascending events, Location 2- Its ascending events and so on. Is it possible to mix the events and sort by date?

    #54748
    Franky
    Keymaster

    That can only be achieved by coding it up yourself using the eme api calls.

    #54749
    Anonymous
    Inactive

    Thanks! I’ll look into it.

    #54755
    Anonymous
    Inactive

    I didn’t figure out how to do that with api calls. Any advice to get me going?

    For now I’ve put the #_LOCATIONCATEGORIES in a class in my event list format and use jquery to filter /hide out location categories.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘How do I …’ is closed to new topics and replies.
Scroll to Top