Problem:
Set Post Expirator value from CRED.
Solution:
To do this you will need to create a Date field in types and then add that Date field to CRED.
What you can do is to copy the value from the cred field to the _expiration_date custom field.
You can use our CRED Hook to do this. Have a look at the link below.
https://toolset.com/documentation/user-guides/cred-api/#csd
Then you can update the post meta with the following function.
https://codex.wordpress.org/Function_Reference/update_post_meta
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
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 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 10 months ago.
Assisted by: Shane.
The forum ‘Types Community Support’ is closed to new topics and replies.