Home Forums Add-ons Repeater Field Hide repeater block after expired date Reply To: Hide repeater block after expired date

  • I’m going to need more to work with.

    I assume you have a repeater and you have a sub field that indicates the end date. You did not give the name of this field.

    This is checking the date field you included in OP

    if (get_sub_field('date', false, false) > date('Ymd')) {

    You need to change the field name in this if statement to your end date field name

    There would be almost no way to do this without it except to maybe do something like

    if (get_sub_field('date', false, false) > date('Ymd', strtotime('+1 day'))) {