Skip Navigation

[Resolved] Add and Edit Post in a Page

This support ticket is created 6 years, 4 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by randallH-3 6 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#923948

Is there a way that I can add and edit posts with one field on a page?

Ideally, it is like adding notes on a page where they can also edit it.

#924057

This should be possible with this steps:

1. Install at least Toolset Types, Views and Forms
https://toolset.com/account/downloads/

2. Create a custom field to take your notes in it, or if you are fine with a native WordPress Post Editor, you do not need that.
https://toolset.com/documentation/user-guides/using-custom-fields/
https://toolset.com/documentation/user-guides/create-a-custom-post-type/#choose-which-sections-to-display

3. Create a Form, to add new Posts
https://toolset.com/documentation/user-guides/cred-training-course/part-1-building-forms-content-submission/
https://toolset.com/documentation/user-guides/creating-cred-forms/

4. In that form, autogenerate the content and then remove what you do not want.
==> Note that several contents are mandatory and should not be removed, but for example you can show a form with just the Title, and a Post Content (notes) to add.
https://toolset.com/documentation/user-guides/creating-cred-forms/#designing-the-cred-post-form
==> If you require a form without Title, then you can do that as well but should apply some custom code logic to update the just created post Title with some senseful value, as other wise the post will be created with an autodraft title.
If you need that ask me in your next reply about.
It involves a relatively simple custom code.

5. Insert this Form to any page

6. There you can now submit the new posts (notes)

7. Create a second Form, this time, EDIT the Posts

8. Repeat basically what you did in #4 but do not insert this Form anywhere yet

9. Create a View and query posts
https://toolset.com/documentation/user-guides/#views-topics
https://toolset.com/documentation/user-guides/view-layouts-101/

10. In the View Loop, insert the Toolset Form to edit Posts
https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/

11. Insert this View to the same page as you inserted the Create Posts Form.

That will provide you a Form to add posts.
Below it, a list of posts, with their edit form.

Note that there are some issues currently (but mostly solved already) with AJAX updated Views and those forms.
If you stumble over any issue setting this up, please let me know.

#924460

Hi,

The only problem I encountered now is I need to double click the submit button on edit for the note to be saved.

#924498

This is unexpected.

The steps I described above are working on a vanilla (fresh) WordPress install with the latest Toolset Plugins, but then, there are several settings which can influence this and even, there may be a BUG or compatibility problem.

I suggest this:
- confirm this problem happens with a possibly minimal install (Toolset, Twenty Seventeen Theme - no other software if possible)
- If you cannot do this test, or after the test the result is still bad, can I ask to log in and see it, or get a duplicate of the site?
https://toolset.com/faq/provide-supporters-copy-site/

If I login, I need to have the links to where you edit and show those forms and views I suggested to create.
I will eventually need to make some tests on dummy pages.

Locally, with a Duplicate, I would replicate your site and check what the issue is there.

After I can update you with a solution or eventually I will need to escalate a BNUG/Compatibility issue if we find something.

==> Please always backup your website before doing any major changes or letting someone (even us) log in.

Thanks!

#948740

Hi, removed the AJAX and it is fine now. Thank you.