Saltar navegación

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

This support ticket is created hace 6 meses, 2 semanas. 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)

Este tema contiene 0 respuesta, tiene 1 mensaje.

Última actualización por Marcel hace 6 meses, 1 semana.

Asistido por: Minesh.

Autor
Mensajes
#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: enlace oculto

#2785242

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please check now logged in as "test" user:
- enlace oculto

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

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
Colaborador

Idiomas: Inglés (English )

Zona horaria: 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.
=> enlace oculto

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

[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:
=> enlace oculto

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 🙂