Calling a list of events
-
I have an option on my home page to show events that have been selected to a certain category (Home Featured Event) but as the client doesn’t always select one, I need to have just the next event displayed when none have been selected. I think it is an else command but can’t see where to place it. Below is my code for the current block.
<div id=”block2″><div id=”block2-title”>LIVE EVENTS</div>
<?php
echo do_shortcode(‘[events_list limit=”1″ category=6]#_EVENTIMAGE{145,90} </br>
<div class=”postname”>#_EVENTLINK</div>
<div class=”e-date”>#_EVENTDATES</br>#_EVENTTIMES</div><div class=”postexcerpt”>#_EVENTEXCERPT{20,…}</div>
<div class=”more-link” style=”margin-left: 10px”>More</div>
<div class=”tickets” style=”margin-left: 10px”>
#_ATT{Tickets}</div>[/events_list]’);?>
</div>
- The topic ‘Calling a list of events’ is closed to new replies.