- This topic has 9 replies, 2 voices, and was last updated 9 years, 3 months ago by .
Viewing 10 posts - 1 through 10 (of 10 total)
Viewing 10 posts - 1 through 10 (of 10 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › List events by location category?
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.
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]
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.
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.
Thanks! Resolved 🙂
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 🙂
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?
That can only be achieved by coding it up yourself using the eme api calls.
Thanks! I’ll look into it.
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.