- This topic has 7 replies, 2 voices, and was last updated 7 years, 5 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › get event Id at the page to get all events with his categories
Tagged: event id
Hello,
I need when a user is in a page for a event show all the events with the same category
I created de page-events.php but and I don’t know how to get the event id or show directly all the events related to his categories
thanks!
See http://www.e-dynamics.be/wordpress/category/documentation/7-placeholders/7-2-events/ , search for #_EVENTCATEGORYIDS
thanks!
I introduced do_shortcode( '[eme_events category=#_EVENTCATEGORYIDS]');
on my php but it shows all the events without category filter
any ideas?
See the description for that placeholder:
“Not really usefull, unless you use the shortcode [eme_events category=#_EVENTCATEGORYIDS] inside a single event format, resulting in a list of events in the same categories as the one being viewed”
The key being “inside a single event format”.
Yes thanks, I have introduced the code in the template php for a single event format, then I go to http://www.mypage.com/events/5/name-event/ (example) but it show all events without category filter
There is no such thing as a template php. The single event format is set in the EME admin interface (either globally or per event).
yes if you create a file called “page-events.php” it works like a template.
But I think I’m complicating something simple; where I have to put the “[eme_events category=#_EVENTCATEGORYIDS] ” what is the “single event format”?
thanks!
yes, indeed. The shortcode can be set in the “single event format” when editing an event (or globally in the EME settings). So edit an event and search for “single” …