Events Made Easy Forums How do I … get event Id at the page to get all events with his categories

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #56300
    Anonymous
    Inactive

    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!

    #56302
    Franky
    Keymaster
    #56303
    Anonymous
    Inactive

    thanks!

    I introduced do_shortcode( '[eme_events category=#_EVENTCATEGORYIDS]'); on my php but it shows all the events without category filter

    any ideas?

    #56304
    Franky
    Keymaster

    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”.

    #56305
    Anonymous
    Inactive

    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

    #56306
    Franky
    Keymaster

    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).

    #56307
    Anonymous
    Inactive

    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!

    #56308
    Franky
    Keymaster

    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” …

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