Hello Christian,
Any idea when the bug could be ironed out?
Regards,
Jos
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.
Thanks, I'll give it a try!
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?
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.
Too bad. Same result.
Image toolset-5.jpg the view in a page
image toolset-6.jpg the result
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
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.
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
Is this what you mean? toolset-11.jpg
I keep getting the toolset-6.jpg result.
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.
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.
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.
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.
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?.