Echo a different events_list from category if chosen category is empty
-
<?php echo do_shortcode( '[events_list category="1" limit="2"]#_EVENTNAME [/events_list]' ); ?>
The above code is an example of what I have now, but I would like it to display 2 events from category 2 if category 1 is empty.
Is it possible to echo [events_list category=”2″ limit=”2″] if category 1 is empty?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Echo a different events_list from category if chosen category is empty’ is closed to new replies.