Skip Navigation

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

This support ticket is created vor 4 Jahren, 4 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von romanF vor 4 Jahren, 4 Monaten.

Assistiert von: 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

Sprachen: Englisch (English )

Zeitzone: 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!