1

Topic: Removal of fields ACF repeater

Is ACF repeater (repeater), in it it is placed ACF date and ACF time.
We have records in a DB on this field for one post of type:
post_id |Meta_name | value
-------------------------------------------
69 |range_row | 2
69 |range_row_0_range_date | 20181103
69 |range_row_0_range_time | 2145
69 |range_row_1_range_date | 20181104
69 |range_row_1_range_time | 2146
69 |range_row_2_range_date | 20181105
69 |range_row_2_range_time | 2147
To delete the last date direct request to a DB it is easy. Type couples
$date = date (Ymd);
DELETE post_meta FROM range_row _ % _ range_date WHERE value <$date
But how to make, that date and time was deleted, and thus repeater drifted?
That is at removal
range_row_0_range_date
range_row_0_range_time
Remains NOT
range_row 2
range_row_1_range_date
range_row_1_range_time
range_row_2_range_date
range_row_2_range_time
And everything drifted, here so
range_row 1
range_row_0_range_date
range_row_0_range_time
range_row_1_range_date
range_row_1_range_time
I am simple , I do not know as to make request. Can run through a cycle?
I can pay the help if prompt correctly.

2

Re: Removal of fields ACF repeater

...)