Skip Navigation

[Resolved] Edit post form link doesn’t work in FSE template

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 0 replies, has 1 voice.

Last updated by Marcel 2 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2784636

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: hidden link

#2785242

Minesh
Supporter

Languages: English (English )

Timezone: 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.

#2785262

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now logged in as "test" user:
- hidden link

The issue was you do not assigned the Edit rights to your role and I've set that for your edit form:
- hidden link

More info:
- https://toolset.com/course-lesson/controlling-access-to-front-end-forms/

Can you please confirm it's working as expected.

#2785596

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...

#2785611

Minesh
Supporter

Languages: English (English )

Timezone: 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.
=> hidden link

To make this work - I've created the following content template and added the following code to it using the shortcode block:
- hidden link

[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:
=> hidden link

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.

#2785628

This seems to work as expected, thanks 🙂