WordPress.org

Forums

Events Manager
[resolved] Display next event (7 posts)

  1. GnorthernGnome
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to display the name and date of the next event with a certain tag. I'm not bothered if I have to use PHP, as it's used within a template, or shortcode to achieve it but I can't seem to get the right call at the moment.

    Any help would be appreciated a whole lot, been trying to get this to work for a while now :P

    ~ Cheers

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

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Hi,

    Sounds like you need something like:

    [events_list limit=1]
    #_EVENTNAME (date info)
    [/events_list]

    Depending on how you want to display it, there are a few placeholder options for the date:

    http://wp-events-plugin.com/documentation/placeholders/

  3. GnorthernGnome
    Member
    Posted 1 year ago #

    @caimin_nwl: Hi, thanks for the answer, looks pretty good :D Here I was thinking I couldn't use that option with a limit=1 attribute, so nice to see you can. Is there a way of filtering the returned value to be the next event, i.e. the next available event temporally?
    Also, could I filter the output to only include events with a certain tag?

  4. Philip John
    Member
    Posted 1 year ago #

    That should always return the next event, as it shows upcoming events in chronological order.

    Cheers

  5. GnorthernGnome
    Member
    Posted 1 year ago #

    @philipjohn: Excellent! Have to admit, haven't had the time yet to try it out but that is great news :)
    Now, the last piece of the puzzle, can I filter by tag?

  6. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Yes, like this:

    [events_list limit=1 tag="tag1,tag2"]
    #_EVENTNAME (date info)
    [/events_list]
  7. jefffather92
    Member
    Posted 1 year ago #

    @phillipjohn and @caimin_nwl, if I am understanding this thread correctly, the default setting to display/list events "should" start with the next upcoming event? And not the latest scheduled event?

    The reason I am asking, is a page I created, I have been trying to figure out a way to just show the next event (using the default settings).

    See here: http://ssg.auwride.com/dev/events/

    It is displaying the July first, when I think it should be showing the next upcoming event in June.

    Anyways, any advice you can provide on this would be greatly appreciated. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic