• Resolved Trigork

    (@trigork)


    Hi, I’ve been using this plugin for quite a while but now I’m facing an issue I can’t solve myself so here it is.

    I need to show the latest event excerpt in a given page, i tried through shortcodes and through page-template editing (Since it’s for a static frontpage it has it’s own template so coding it should be no problem)

    Thing is that I can’t figure out how to select the nearest event (Time-wise speaking, not geographically speaking) to pass it as a parameter for the shortcode or the php function.

    Can you guys give me a hand here?

    Thanks in advance and sorry if I haven’t searched well enough this board.

    https://wordpress.org/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • caimin_nwl

    (@caimin_nwl)

    Hi,

    Sounds like you need to use the scope attribute with your shortcode. Something like this:

    [events_list scope="tomorrow"]

    There’s full list of scopes you can use here:
    http://wp-events-plugin.com/documentation/event-search-attributes/

    Thread Starter Trigork

    (@trigork)

    Thanks for your answer, but the thing is that I don’t want to use [event_list]

    Is it posible to use the scope attribute for the [event] shortcode?

    Because what I need is to show only the excerpt of the chronollogically nearest event.

    caimin_nwl

    (@caimin_nwl)

    Then what you’d do is use the events_list shortcode in the same way as I mentioned above but use the except placeholder between tags as formatting. Like this:

    [events_list scope="tomorrow"]
    #_EVENTEXCERPT
    [/events_list]
    Thread Starter Trigork

    (@trigork)

    I wasn’t aware of this function of the shortcode.

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Displaying nearest (time-wise) event excerpt on a page’ is closed to new replies.