Hi,
Can you guys help me write a conditional statement on the espresso grid template? For each event listed, i’d like to show different time info depending on the parent event category.
I believe it’s something like,
<?php if(is_espresso_event_category(x)) {
espresso_event_date_range();
}
elseif (is_espresso_event_category(y)) {
echo '<div>On-Demand, no date range</div>';
}
else echo'<div>Have a nice day</div>' ?>
The support post ‘Conditional statement within event grid loop – result depends on category’ 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.