Hi,
I am trying display a list of related events using and ACF relationship field. I was to display a list of events that shows related events ordered by event date, more recent or upcoming at the top and older/past at the bottom. I was looking through documentation and found something like this, however it’s not ordering. So something isn’t right, any insights on that would be appreciated.
<Loop acf_relationship="related_events" sort_field="_eventorganiser_schedule_start_start" sort_type="date" sort_date_format="d-m-Y" sort_order="desc">
<li><a href="{Field url}"><Field title /></a> - <Date format="l, F j, Y"><Field _eventorganiser_schedule_start_start /></Date> at <Date format="g:i a"><Field _eventorganiser_schedule_start_start /></Date></li>
</Loop>
Also if there’s a way I can show two lists, with future events and another of past events that would be great. As shown in documentation here.
<Field type=event custom_date_field=event_date_time custom_date_field_format="Y-m-d H:i:s" custom_date_field_compare=before custom_date_field_value=current
How would I incorporate that to the loop?
Thanks!