Saltar navegación

[Resuelto] Can I set an expiry date on a Custom Post Type that is a set time after publish?

This support ticket is created hace 4 años, 3 meses. 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 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 4 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#2012671

Tell us what you are trying to do?
I have a custom post type, which I want to expire after 3 years (basically a user will pay for the right to have a document searchable on my website for 3 years). Is it possible in Toolset, that when a 'post' is input via the Post Form, that an expiry date is automatically added to the post which is 3 years after the date of the publish date?

Is there any documentation that you are following? I looked but couldn't find a suitable example

Is there a similar example that we can see? No

What is the link to your site? Under development at the moment

#2012723

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Keith,

Thank you for getting in touch.

Yes toolset is able to handle post expiration however it will need to be enabled. I would recommend following the instructions in the link below in order to do this.
https://toolset.com/course-lesson/setting-up-automatic-post-expiration/#:~:text=You%20can%20enable%20automatic%20expiration,twice%20daily%2C%20or%20once%20daily.

Please let me know if this helps.
Thanks,
Shane