Navigation überspringen

[Gelöst] Edit post form link doesn’t work in FSE template

This support ticket is created vor 5 Monaten, 1 Woche. 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.

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)

Dieses Thema enthält 0 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von Marcel vor 5 Monaten.

Assistiert von: Minesh.

Author
Artikel
#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: versteckter Link

#2785242

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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
Unterstützer

Sprachen: Englisch (English )

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

Can you please check now logged in as "test" user:
- versteckter Link

The issue was you do not assigned the Edit rights to your role and I've set that for your edit form:
- versteckter 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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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.
=> versteckter Link

To make this work - I've created the following content template and added the following code to it using the shortcode block:
- versteckter 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:
=> versteckter 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 🙂