Support » Plugin: Events Manager » Using shortcode to display only one category

  • draxo


    Hi there,

    I would like to only display the events belonging to one specific category I defined, say “my-slug”. I’m trying to use this shortcode [event-list event-category=”my-slug” style=”list” show=5] and it doesn’t seem to work. What am I doing wrong?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Patrick Buntsma


    Okay, the complete shortcode is wrong.

    • [events_list], underscore, not a dash.
    • Categories can only be targeted by their ID, not slug.
    • “style is invalid. The shortcode itself already says “list”. 😉
    • “show” is invalid as well.

    Check out the complete overview here:

    So it should be more like:
    [events_list category="12" limit="5"]

    Patrick Buntsma


    By default the shortcode will use the markup as defined in Events > Settings > Formatting > Events Page. You can overwrite that markup easily within the shortcode.

    <ul>[event_list category="12" limit="15"]<li>#_EVENTNAME on #_EVENTDATES at #_24HRSTARTTIME</li>[/events_list]</ul>
    (for example) 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.