I'm trying to get a edit post form in an FSE template but can't seem to get it to work. See this video: lien caché
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL and admin access details.
Also, please share frontend user access details using which you are trying to edit the post from frontend.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
Can you please check now logged in as "test" user:
- lien caché
The issue was you do not assigned the Edit rights to your role and I've set that for your edit form:
- lien caché
More info:
- https://toolset.com/course-lesson/controlling-access-to-front-end-forms/
Can you please confirm it's working as expected.
Hi Minesh,
The link is showing now, thanks. But when I click on it (either as an admin or as the test user) nothing happens, the form doesn't appear...
Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
I see the single post content template you created using your theme and you are not using Toolset blocks to create single post template.
=> lien caché
To make this work - I've created the following content template and added the following code to it using the shortcode block:
- lien caché
[wpv-conditional if="( '[wpv-search-term param='content-template-id']' eq '3438' )"]
[wpv-post-body view_template="lid-aanpassen"]
[/wpv-conditional]
Then - to your single post content template that you created using your theme feature:
=> lien caché
I've adjusted the following line of code to shortcode block:
[wpv-post-body view_template="ct-container-for-edit-form"]
[toolset-edit-post-link content_template_slug='lid-aanpassen' target='self']Pas je gegevens aan[/toolset-edit-post-link]
More info:
- https://toolset.com/documentation/legacy-features/views-plugin/#conditional-output-in-views
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-search-term
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body
Can you please confirm it works as expected now.
This seems to work as expected, thanks 🙂