Skip Navigation

[Resolved] CRED: froms show instead of content

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

Our next available supporter will start replying to tickets in about 8.62 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#604172

Hi,
1- I created a CRED from to edit posts using this method:
https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/#using-standard-wordpress-editor-to-insert-the-cred-form

that generated a shortcode like this:
[cred_form form="edit-books"]
I inserted it into a post, however, the post changed to the editing form. so the normal post no longer shows.
please check the post here:
hidden link

I added and "edit this post" link using the shortcode shown in this documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-522474

However, all what it showed was the shortcode itself and the post is still showing as the editor only.
-----------
2- Is there a way to have a "central post" that have a CRED from that you can choose other posts and update certain fields in them?
example:
say I have 500 posts for 500 products, and I want to update their price custom field.
is there a way that I can insert a central CRED from that has a dropdown list with a "Select2" jQuery so I can choose the post then update the custom fields? this saves me visiting 500 posts to update them.

Thanks

#604306

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Firstly, we have a one-issue-per-thread policy in the forums, so let me deal with question 1 first and then I can split your second question into a separate thread.

The way to insert and display CRED edit forms is not very intuitive, so let me summarise what's expected.

You create a CRED edit form to edit posts of a particular post type.

You insert this form into an unassigned template using the cred_form shortcode, either a Template Layout if you are using Layouts, or a Views Content Template if you are not.

You then insert a link to the CRED edit form where you want that to appear. Typically you would insert the link on the template for single posts of that type, i.e. when viewing an individual post there is a link to edit that post. Use the Fields and Views button to insert the toolset-edit-post-link shortcode, specifying the template where the edit form resides.

Can you verify that that is what you have done?

If your requirements are different, what are they?

#604328

Hi,
thanks for the reply. I am happy to keep opening a support ticket per question. I was just trying to minimize the load on the support team.

As for how I inserted the form, I followed this method in the documentation, which does not involve building layouts or templates. can you please check this link:
https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/#using-standard-wordpress-editor-to-insert-the-cred-form

My question is: when I followed the exact steps, the post was replaced by the form. how is this a useful option? this made the post disappear.

thanks.

#604369

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-01-08 at 13.55.21.png

That's not what should happen.

If you want to insert the form itself into a post or page it should appear in addition to existing post content, not replace it.

See the screenshot where I have created a CRED form to edit standard posts and then inserted this form into the Hello World! post. Then when I display the post I see the post itself and the form to edit it (and the post body section shows the cred_form shortcode that created the form).

Is that what you are trying to do? Insert the form itself into a post or page?