Skip Navigation

[Resolved] Update post status from the frontend

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user would like to update post statuses from the frontend.

Solution:
Forms do not offer a post status field. To work around it, use a Generic field and custom code to update the post status. Check this reply https://toolset.com/forums/topic/manage-native-wordpress-post-status-in-cred-form/#post-489972

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

This support ticket is created 3 years, 11 months 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.

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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by irfanA 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1910559

Hi Jamal,

Thanks once again, I have created second view now the issue is what is the best and easiest way to update the post status via front end. I have prepared and Edit From but how I can put all status so that empleyee can change the status accordingly.

#1910577

Hello and thank you for contacting the Toolset support.

Toolset Forms do not have a field for the post status. You need to use a generic field for the dropdown of statuses, and custom code to save the selected status. Check this reply from my colleague Minesh on another ticket:
https://toolset.com/forums/topic/manage-native-wordpress-post-status-in-cred-form/#post-489972

I hope this helps. Let me know if you have any questions.

#1912163

My issue is resolved now. Thank you!