This support ticket is created vor 4 Jahren, 10 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.
Create an edit listing form. Here's what I've done.
My post type here is called Listing.
1) Created and Edit form for post type listing. (step 1 in instructions below)
2) Created content template form for displaying editing form. Note confirming as per the docs here this shouldn't be assigned to the Listings post type in Usage?
3) Created a View to display the users listings (My Listings). Added just two items to this template - post title and Toolset Edit Post link.
Here's what is happening, the edit post link just links to the listing, not the edit form. Unsure if this is an issue with content template?
-- Is there any documentation that you are following?
It sounds like you are doing it right, and I can confirm that the template you insert the edit form into does not get assigned to anything, it is just to host the form.
The shortcode to generate the edit link would then look something like:
If that isn't working on the front end and you are seeing the post rather than the edit form, there could be a number of reasons:
1. is that your theme isn't able to display Toolset's templates, which you can check by switching to a standard theme such as twentynineteen to see if it then works
2. or you may be using one of the newer products that has added their own templating systems, such as a page builder like Elementor Pro or theme like Divi or Avada.
I can't see your debug info to know if that may be the case (versteckter Link).
I am using Elementor Pro here... I'm looking at another Elementor site I've built using Toolkit and can't see much difference for how they use the edit post link.
Both have the same basic setup:
- Edit form for custom post type
- Custom content template for displaying editing form
- View to display users listing that feature the [toolset-edit-post-link content] shortcode to edit.
- This current site just links to the post rather than the edit form.
I didn't understand this: "View to display users listing that feature the [toolset-edit-post-link content] shortcode to edit."
A View displaying users? Linking to posts?
It might help if I could take a look at your site.
Can you clarify:
1. what is the View that has the edit link inserted and where is it displayed?
2. what is the post type?
3. does the post type have a template assigned for displaying single posts? Is it an Elementor template, or a Views Content Template?
Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.
I was able to see that you use an Elementor Pro template for the single Listings posts.
The edit forms work by intercepting and replacing the post body on the front-end, and the problem is that your Elementor template for listings doesn't include the post body (i.e. a Post Content module).
The edit form links can only work if your template for single listings includes the post content (even if you don't use the post content on that post type and so it would output nothing).
Hi Nigel, OK thanks so do I look to add the post body into the elementor template??
Essentially all I need to do is have an edit link to go to the form, if you can suggest if this is the best method here or if there is an alternate way to do this?
Hi Waqar, I've attempted here via method 2 but I'm getting an error form type and post type don't match.
I'm really confused here - all I want to do is to let users edit their own listing, which seems like a simple feature - but even though I've tried using the default shortcodes and other different methods I can't get it working.
To my Elementor page template I've added in the shortcode
[toolset-edit-post-link content_template_slug='editing-listing-template' target='self']Edit Listing[/toolset-edit-post-link]
What happens when I click on this link is that I'm simply redirected back to the listing. No edit form. This is where I'm stuck and can't figure out how to fix.
Note I'll start a new thread and reference this for info.