Skip Navigation

[Resolved] Delete date entries older than current date

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 2 replies, has 2 voices.

Last updated by romanF 1 year, 2 months ago.

Assigned support staff: Shane.

Author
Posts
#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: English (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!