Skip Navigation

[Resolved] WANT TO SET AUTOMATIC EXPIRY TIME FOR CUSTOM POST

This support ticket is created 4 years, 7 months ago. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1621369

Hi
I need your help to assign a custom solution for custom post expiration. I am not basically using toolset's Post form to submit new posts and that's why the automatic post expiration is not available in my third party posts listing plugin. So I basically want your help to automatically assign a date after 30days from "post_modified" or "post_date". For now, If I want to enable post-expiration then, I need to edit that post and enable post expiration and select future expiry date. But I want to do it automatically to avoid post editing every time.

So I want your help to assign a custom function that can set an automatic date as expiry and enable that post expiry feature in each post by default.

Waiting to hear from you guys ASAP.

#1622485

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The thing is that Automatic post expiration is activated from the Toolset form.

You will not be able to see the Post expiration setting when you edit the form until and unless you have created a post form using Toolset form and activated and set the automatic post expiration settings for that form which is set to create/edit your any of post type.

For example, please check the following screenshot, the form is created to add new products for post type Product where the post-expiration settings are activated: hidden link

If you do not create a post form using Toolset form and do not activate the post-expiration settings then you will not be able to see the post-expiration settings when you edit the post in the backend (admin).