Skip Navigation

[Gelöst] Cred modification link insert the Cred form inside the post content page

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: When I view my CRED edit form, it is placed in the content view of the post being edited. I would like to include the edit form in a separate page.

Solution:
This is actually possible to do and the way to do it requires a small setup process.

First what you need to do is create a page that will hold the form itself and then add your equivalent of this shortcode to this page.

[cred_form form='1467' form_name='Edit Post' post="[wpv-search-term param='post_id']"]

We used the [wpv-search-term] shortcode to dynamically load a different form based on the id that is passed in the url.

Next you need to go to your post/content template and hard link to the form page.

<a href='domain.com/form-page?post_id=[wpv-post-id]'>Edit Post</a>
This support ticket is created vor 7 Jahren, 7 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Pat vor 7 Jahren, 7 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#506567

Pat

Hello,

I have a Cred modification form and have inserted it inside a Views.
Here is my code :

[cred_link_form form='modification-objet-antiquaire' form_name='Modification objet antiquaire' class='btn btn-primary' text='MODIFIER' target='_self']

Now, the issue is that when I click on the button, I'm redirected to the page content of the postype and the Cred modification form is inserted inn which is not what I want. I would prefer to have only the Cred modification form on the page and not the View content.
What do I have to do to get this?
Regards
Pat

#507072

Hi Pat, there is some information about using a separate page to display your CRED edit form in this other ticket:
https://toolset.com/forums/topic/open-an-edit-form-in-a-separate-page-instead-of-the-connected-post-type/

Please let me know if you need further assistance to get this working and I'll try to help.

#507142

Pat

Hi Christian,

Perfect, thanks.
Perhaps that would be good to have this option available when you want to insert a Cred form (in addition to the form insertion or the link insertion).

Regards
Pat