Skip Navigation

[Resolved] Post scheduling in CRED

This support ticket is created 7 years 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#517709

I am wanting to enable users to schedule their posts to publish at a time in the future of their choice. This is easily done from the WP backend but I don't know how to achieve this from a front-end form.

Is this possible with WP-types?

if so can you suggest how would i go about achieving this?

kind regards

Peter

#517723

Dear Peter,

Yes, it is possible within CRED + some custom PHP codes, you can try this:
1) Create a custom date field (expected publish date) with Types plugin
2) Create a CRED form with above date field, for your user to select the "expected publish date" value,
3) when user submit the form, use CRED action hook cred_save_data to update the post publish time as the field value of "expected publish date"
More help:
https://toolset.com/documentation/programmer-reference/cred-api/#csd
This hook allows doing a custom action when post data is saved to database.
https://codex.wordpress.org/Function_Reference/wp_update_post
This function updates posts (and pages) in the database. To work as expected, it is necessary to pass the ID of the post to be updated.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.