Hello,
I’m using EE4.7.5.p and when I want to display events with the [ESPRESSO_EVENTS month=”July 2015″] shortcode and there are no events in July 2015 then it just shows a blank page.
I want it to output a message like “Sorry, there are no events in July 2015”.
How could I do that?
The message is actually theme dependant. As the events are posts, if there is nothing in the post loop, the theme would normally display a message though some choose not to.
As some do display a message, we decided to leave it up to the theme to resolve, to avoid duplicate messages.
If your theme does not contain a message you might get away with adding a file called content-none.php to a child theme. Some themes will recognise this but again, it’s theme dependant.
I would recommend taking a look at the content-none.php file in the default TwentyTwelve theme (I used it with success), but you may need to add a conditional if statement to check that you are on an event archive, otherwise the message could show for other post types (might not be needed but it’s worth considering).
Viewing 1 reply thread
The support post ‘Blank page if there are no events available with month shortcode’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.