Skip Navigation

[Resolved] Forms edit post link problems

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

Problem: I would like to create an edit post link, but the link leads to a page without the CRED form.

Solution: Do not use Beaver Themer and Content Templates together. If you want to insert a CRED form but cannot use a Content Template, you can create a View that is filtered to only show the post you want to edit with CRED. Then insert the edit CRED form inside the View's Loop Output.

50% of people find this useful.

This support ticket is created 6 years, 6 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 49 replies, has 5 voices.

Last updated by Shane 5 years ago.

Assisted by: Shane.

Author
Posts
#872620

Hello Christian,
Any idea when the bug could be ironed out?
Regards,
Jos

#872818

I don't have an ETA, sorry. Whenever two plugins compete to control the_content(), there are complex situations to consider in the solution, so I don't think it will be a quick fix. For a workaround you can use right now, you can try the following steps:
- Create a View of the Begeleidingsplannen post type, filtered by post ID, where the post ID is set by a URL parameter "post-ids", and limit the number of results to 1. For additional security, you can also filter by Post Author, set by the current User.
- Insert the existing CRED form to edit the Begeleidingsplannen post in the Loop Output.
- Create a custom Page and insert the View containing the Edit CRED form in the page content.
- Instead of using the toolset_edit_post_link shortcode to link to the CRED form, construct a link to the custom Page using the post-ids URL parameter, like this:

<a href="<em><u>hidden link</u></em>">Edit [wpv-post-title]</a>

This bypasses the need for a Content Template to display the CRED form, which should prevent the conflict with Themer.

#873488

Thanks, I'll give it a try!

#875451
toolset-4.jpg
toolset-3.jpg
toolset-2.jpg
toolset-1.jpg

Hi Christian,
I do not understand everything.

Your steps:

- Create a View of the Begeleidingsplannen post type, filtered by post ID, where the post ID is set by a URL parameter "post-ids", and limit the number of results to 1. For additional security, you can also filter by Post Author, set by the current User.
- Insert the existing CRED form to edit the Begeleidingsplannen post in the Loop Output.
- Create a custom Page and insert the Edit CRED Form in the page content.
- Instead of using the toolset_edit_post_link shortcode to link to the CRED form, construct a link to the custom Page using the post-ids URL parameter, like this:

1 create a view filtered by post ID: done
2 insert existing cred form in loop output (image toolset-1.jpg)
3 create custom page (image toolset-2.jpg)
4 used link (image toolset-3.jpg)
5 result (image toolset-4.jpg) No good,

What do I do wrong?

#880700

Sorry, I gave you the wrong instruction here:
- Create a custom Page and insert the Edit CRED Form in the page content.

Instead, remove the Edit CRED form and replace it with the View containing the Edit CRED form.

#881401
toolset-6.jpg
toolset-5.jpg

Too bad. Same result.

Image toolset-5.jpg the view in a page
image toolset-6.jpg the result

#881410

I see, you have a Content Template applied to this Page:
hidden link

Here is the Content Template:
hidden link

You should add the View "bp-test" to this Content Template, or disconnect the Content Template from this Page. Then the CRED edit form should appear here: hidden link

#881411

Hi Christian,
Could you make this clearer:
"You should add the View "bp-test" to this Content Template, or disconnect the Content Template from this Page. Then the CRED edit form should appear here: hidden link"

Should I put the content template in the view?
or
disconnect the content template from this page?

Sorry but I do not understand what you want me to do.

#881436

Should I put the content template in the view?
No, you can put the View inside the Content Template, or you can disconnect the Content Template from this Page.

or disconnect the content template from this page?
You can choose either option. If you disconnect the Content Template, everything that is currently shown here will be removed and replaced with the CRED form: hidden link

If you insert the View inside the Content Template, everything you see at this URL will still be shown, and also the CRED form:
hidden link

#881448
toolset-11.jpg

Is this what you mean? toolset-11.jpg

I keep getting the toolset-6.jpg result.

#881451
Screen Shot 2018-05-13 at 5.49.28 PM.png

Check now please:
hidden link

I see that you're using Beaver Themer, so I disconnected the "Hoofdpaginas" Beaver Themer layout from the begeleidingsplan-editten page (see the screenshot here) and now I can see the CRED form as expected.

I do not recommend using Beaver Themer templates and Content Templates together. Beaver Themer and Content Templates have many of the same functions, and it's best to use one or the other instead of trying to make them work together.

#881453

Hi Christian,
I understood that your method was a solution while using beaver Themer. But now I see that only disconnecting Themer from that page is OK. Very happy with this solution.

Thanks for your patience.

#881469

Christian,
I need to put this link on a page with a 'Begeleidingsplan' and I need to edit that begeleidingsplan with it. How do I do that?

I use this link:
hidden link;">Edit [wpv-post-title], but it doesn't give me the right begeleidingsplan.

#881471

If the page is a single Begeleidingsplan post, like this hidden link
You can use the $current_page operator to get the ID of the current post:

<a href="<em><u>hidden link</u></em> id='$current_page']">Edit [wpv-post-title]</a>

If it's not a single Begeleidingsplan post, then you can insert the link in the Loop Output of the same View that shows the Begeleidingsplan on this page and it should pick up the correct post's ID automatically.

#881970

I put it in the View that shows the Begeleidingsplan on this page and it still shows only 'David Hulsman's Begeleidingsplan'. It does not pick up the right Begeleidingsplan.

Am I wrong in my thinking that going back to the original situation and only disconnect the 'Begeleidingsplan-editten' from Beaver Themer should also solve the problem?.