Future events list w/only first recurrence date
-
Trying to create a coming attractions list for movies. Some last a week and are entered as recurring events. Some last one day and are entered as events (also with a category #2 assigned).
<?php if (class_exists('EM_Events')) { echo EM_Events::output( array('limit'=>0,'orderby'=>'event_start_date','recurring'=>1,'scope'=>'customfuture', 'format'=>'<div style="margin-bottom:15px;"><h2>#_EVENTLINK</h2><div style="float:left; width:auto; margin-right:20px;">#_EVENTIMAGE{100,150}</div>#_EVENTNOTES<p><em>Starts #M #j</em></p><div style="clear:both;"></div></div>') ); } ?>
This gives me a list of the recurring events (one instance of each). How can I also add in the events that are assigned category #2?
Do I need to run two separate $args = em_get_events loops (one with ‘recurring=>1’ and one with ‘category=>2’) and then combine them into one output all sorted by event start date? How would I add the $args to the output array and get the ‘orderby’ right?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Future events list w/only first recurrence date’ is closed to new replies.