Hi all – I’m hoping someone might be able to help me out with a pickle I’m having. I’m using the events list widget and have customized the output to include several css styles. I would like to change these styles based on the event count. So if only one event, then use this specific style, if 3 events use this other style. Kind of like post count in the normal wp loop (<?php if ($count == 1) : ?>). Can anyone point me in the correct language to use with the events list to make this happen? Essentially, I just want the with of my columns to change depending on how many events are listed. Thanks in advance for your help.
<?php
foreach( $posts as $post ) :
setup_postdata( $post );
?>
<li class=”<?php tribe_events_event_classes() ?> medium-4 columns event” data-equalizer-watch>
….. stuff ….