Sauter la navigation

[Résolu] Delete date entries older than current date

This support ticket is created Il y a 4 années et 6 mois. 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)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par romanF Il y a 4 années et 5 mois.

Assisté par: Shane.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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!