I am trying to have an edit button on the single listing page for a post type created by Toolset.
I have a listing here: hidden link
When logged in I have configured an "edit" link for the post. I created the form, placed the form instead a content template and used [toolset-edit-post-link content_template_slug='edit-listings' target='self']Edit[/toolset-edit-post-link] in the single post content template to show the edit button.
It does show the edit button and the edit button does take me to the edit form, but all the fields are blank. See images.
Inspect element and console log show no issues.
Thank You for your time and please let me know if you need more info.
Hello,
What do you mean this: placed the form instead a content template?
Please follow our document to setup the Editing post form + Content template, and display the editing post form link:
https://toolset.com/course-lesson/front-end-forms-for-editing-content/
Sorry that should be inside, not instead. I did follow those instructions. I've created edit forms before, but for some reason this one isn't working.
The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, and test again
3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/
4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
I am downloading the files, will update here if find anything
Please try these:
Edit the post form "Listings Edit":
hidden link
in section "Form type", choose option "Edit existing content", save
And test again, it works fine in my localhost with your duplicator package, see my screenshot editing-post-form.JPG
It was already set to Edit existing content on my end, so I saved it as add new and then saved as edit existing again. My issue is resolved now. Thank you!