I used the following to display future events:
[raw]<div class="eventscoming">
[loop type=event count=12 field=wpcf-date value=future-time in=timestamp order=asc orderby=field_num offset=1]
<div class="eventbox">
<h3>[field title-link]</h3>
<date>[field wpcf-date in=timestamp date_format="D j M Y @ g:ia"]</date>
<div class="eventimage">[field image-link size=medium]</div>
[link url]More...[/link]
</div>
[/loop]
</div>[/raw]
event
is a custom post type, and would be replaced by “post” for regular posts.
wpcf-date
is a custom field holding the upcoming dates. For regular posts, I guess this is substututed with “date” which is the post’s date field.
-
This reply was modified 4 years, 8 months ago by
iantresman.
-
This reply was modified 4 years, 8 months ago by
iantresman.