Skip Navigation

[Resolved] use current post to create new post when submitted

This support ticket is created 5 years, 2 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: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 5 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#1188743

Tell us what you are trying to do?
use current post content to create new post in draft status. The idea is to allow users to suggest a change to a post, but without affecting the original post. We are thinking maybe a simple way is to create a copy of the post. Then the moderator can review the suggested edits and add them manually to the original.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link
flywheel
flywheel

#1188762

hi just checking on this

#1188797

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Jason,

Thank you for contacting us.

It seems that our chat got disconnected, by I'll be happy to share the steps that we discussed through this support ticket.

To collect changes suggestions from visitors, so that they can then be reviewed by the administrator manually, you can follow these steps:

1. Create a new post type (for example "Change Requests"), which will store all individual change requests submitted by the visitors.
( ref: https://toolset.com/documentation/getting-started-with-toolset/structure-your-data-with-custom-post-types-fields-and-taxonomies/#create-custom-post-types-from-the-toolset-dashboard )

2. For that new custom post type, you can add a new custom field group, that will include a "Post Reference Field" connected to the "Meetings" post type (i.e. the post type for which you're collecting change requests).

Following are some guides on adding custom fields groups and specifically a "Post Reference Field":

https://toolset.com/documentation/user-guides/using-custom-fields/
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/using-post-reference-fields-to-display-information-from-a-related-post/#adding-a-post-reference-field

3. Next, you can create a new Toolset form, to add a new "Change Requests" post type item.
( ref: https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/ )

4. This new form will need just two fields:
a). the post reference field, to select the post to recommend changes for
b). the post's content field, where the visitor can add message/details of what changes he/she is suggesting

5. You can then set a post email notification for this form so that when a visitor submits a new change request, the admin can get an email notification for it.
( ref: https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/ )

6. If specific changes are approved, the admin can then update the actual post, accordingly.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

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