Thank you very much for your co-thinking John!
I got it to work
if (get_sub_field('date', false, false) > date('Ymd', strtotime('-1 day'))) {
I’m sorry John, I’m a designer and I can’t program. I don’t understand what you mean? Maybe you can add me the code here?
Many thanks John Huebner.
But this code deletes the entry when the date starts. I need the entry to be deleted when the date expires.
For example, in addition to yesterday, it does not display today’s date.