I need a little help with this shortcode to set an expiration date on 'MAIN POST' that is one day after the custom field date of a 'RELATED POST'. Here is my setup:
1. Toolset Settings / Forms / Post expiration enabled (checking once daily)
2. Functions/ Shortcode to add 1 day to a timestamp:
3. Toolset View to get the custom date field of the related post and display it in timestamp format, plus one day, using the shortcode above. This in the loop of the related post:
The problem I have is that if I set the shortcode date to return 'Ymd' and the custom field in the view to return 'Ymd' the output is perfect. For example, the end date of the related custom field is 07102024 and the output is 08102024.
However, I want to pass this date to the generic date field in the form (to trigger an email notification) and can't get the shortcode to output a timestamp format that is compatible with the generic date field.