Can I use a conditional / if () to check if there are any upcoming events?
-
As the title reads, I’m building a small “Upcoming Events” area on my homepage using the
[events_list]
shortcode being called through
<?php echo do_shortcode('[events_list]'); ?>
So I’m essentially trying to wrap this area an if statement to check if there are any upcoming events (so that the entire area doesn’t display if there are none); I didn’t see anything about this listed in the documentation though so I’m wondering if anyone in the community could shine some light on it.. thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Can I use a conditional / if () to check if there are any upcoming events?’ is closed to new replies.