Skip Navigation

[Gelöst] Delete date entries older than current date

This support ticket is created vor 2 Jahre, 6 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 Antworten, has 2 Stimmen.

Last updated by romanF vor 2 Jahre, 6 Monate.

Assigned support staff: Shane.

Author
Artikel
#1685243

I have a custom field for entering (multiple) dates. Is there a good way to only show dates from today or/and the future.
I would like not to use entries for dates that are older than today. Is this possible?

If no, is there a good way to delete old entries? Maybe once per day via cronjob ?

Thank you!

#1685571

Shane
Supporter

Languages: Englisch (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Roman,

Thank you for getting in touch.

Is there a good way to only show dates from today or/and the future.

Are you referring to a frontend date filter ?

If no, is there a good way to delete old entries? Maybe once per day via cronjob ?

This would be possible with a cronjob to check the fields but the code to do this is something that is out of the scope of our support forum so we wouldn't be able to help with writing this code.

Thanks,
Shane

#1688563

My issue is resolved now. Thank you!