Home › Toolset Professional Support › [Resolved] Which post expiration date is enforced when two forms are used to update a post?
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.
This topic contains 2 replies, has 2 voices.
Last updated by himanshuS 1 month ago.
I have a custom post named 'Jobs'.
These post types are created using Form A. This form has the condition to expire the post in 30 days and change status to private.
The user is also allowed to close the post manually with form B. This makes the post private. Form B does not have any expiration condition.
After closing the post, the user is allowed to re-open the post with Form C. This form has a condition to expire the post in 30 days and change status to private.
My question is - will the expiration date be enforced from Form A or Form C if the user users all three forms.
English (English )
Spanish (Español )
The post expiration date is stored as a (hidden) custom field on the published post, set by the form at the time the form is submitted.
There is only a single version of the expiration date field, and so whichever form is submitted last will be the one whose expiration date is applied.
In your scenario it looks like the date from Form C would be applicable.
My issue is resolved now. Thank you!
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support