• Resolved corpcasting

    (@corpcasting)


    Hey guys. I need a bit of help sorting a custom events list. I’m using this code to call events onto a page:

    <?php if (class_exists('EM_Events')) {
    	echo EM_Events::output( array(
    		'limit'=>99,
    		'orderby'=>'event_start_date,event_start_time',
    		'format'=>'<li><a href="#_EVENTURL"><div class="dateBox"><span class="month">#M</span><span class="date">#j</span></div><div class="dateInfo"><h1>#_EVENTLINK</h1><h2>#_LOCATIONLINK</h2><h3>#_12HSTARTTIME</h3></div></a></li>'
    	) );
    	} ?>

    I would like to be able to sort them by week (Sunday to Saturday). Perhaps having a dropdown menu at the top where users can select a week and then see the events that fall within that time frame.

    Example dropdown:

    June 29 – July 5
    July 6 – July 12
    July 13 – July 19
    July 20 – July 26
    etc.

    Thanks for any help!

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sorting custom event list’ is closed to new replies.