Hello, can you please advise me if there is a way to set dynamically a post from a view to go into draft mode automatically after it expires which is related to my Event Date field. Please refer to the screenshot attached.
Currently I have managed the post to not show after its date expires but need to make this post to go in Draft mode as well. Please refer to the screenshot attached.
Thank you.
Hello and thank you for contacting the Toolset support.
If you are creating these posts using Toolset Forms, there is a built-in expiration feature, check this article https://toolset.com/course-lesson/setting-up-automatic-post-expiration/
But, if you are creating the post from the backend or using other means(another plugin's form), you will need a 3rd party plugin or some custom code(using Cron) to change these posts' statuses. Check the following pages:
- https://wordpress.stackexchange.com/questions/97031/code-to-auto-expire-posts-after-30-days
- hidden link
- https://wordpress.org/plugins/post-expirator/
- https://wordpress.org/plugins/tags/schedule/
I hope this helps. Let me know if you have any questions.
My issue is resolved now. Thank you!