• Resolved Janco147

    (@janco147)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    I added date/time field comparison for the [if] shortcode, in the newest plugin update. Please try this:

    [if field=datum value=future in=timestamp]
    Thread Starter Janco147

    (@janco147)

    Hi Eliot

    it works a treat!

    thanks for helping out

    J

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sort by date inside [repeater] ?’ is closed to new replies.