I have a number of events on a page and I need to know the number of entries outside an entries loop. The page has a number of events, and then an invitation to see old events:
EVENTS
Event 1
Event 2
...
Event 6
Missed something? check out past events!
However, if there are no events, I want the page to display a message:
More events coming soon! Past events are here.
So I need the logic to go like this:
If there are more than 0 events,
loop through all events
then
add past events message
else
display no events message*
How can I do this?