sort by date inside [repeater] ?
-
Hello!
First and foremost: love the plugin.
I’ve got problems with the following:
I’m using a [loop] to display a list of music projects. Inside each project is a list of concert dates. These are stored in an ACF repaeater field.
I’m displaying this on the page using
‘All events:
[loop type=agenda_item][field title]
[content]
[repeater speellijst_item]
[field datum in=”timestamp” date_format=”j M Y”]
[field locatie]
[field plaats]
[/repeater][/loop]’
This works fine. You can watch it here https://www.test4.websitehebben.com/agenda/
The problem is when I try to only display concerts that are in the future. I tried this but it doesn’t work:
‘Display future events only:
[loop type=agenda_item][field title]
[content]
[repeater speellijst_item]
[if field=datum value=future]
[field datum in=”timestamp” date_format=”j M Y”]
[field locatie]
[field plaats]
[/if]
[/repeater][/loop]’
As you can see, the repeater does not output anything now. Boohoo! Can I not use IF inside a repeater? Help would be aprreceated ??
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘sort by date inside [repeater] ?’ is closed to new replies.