Display next event
-
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 😛
~ Cheers
-
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:
@caimin_nwl: Hi, thanks for the answer, looks pretty good 😀 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?That should always return the next event, as it shows upcoming events in chronological order.
Cheers
@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?Yes, like this:
[events_list limit=1 tag="tag1,tag2"] #_EVENTNAME (date info) [/events_list]@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.
The topic ‘Display next event’ is closed to new replies.