Skip Navigation

[Resuelto] Add front end edit link for other post types

This support ticket is created hace 5 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por duongN-3 hace 5 años.

Asistido por: Nigel.

Autor
Mensajes
#1388519

Tell us what you are trying to do?
Replicate the same edit experience as drama post type for other post types (movies and specials)

Is there any documentation that you are following?
Copied from Drama Post type set-up

Is there a similar example that we can see?
enlace oculto

What is the link to your site?
enlace oculto
enlace oculto

#1388553

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

I'm not sure I understand the problem.

Your site is set-up with an edit form to edit the drama post type.

You want to edit movies and specials post types in a similar way.

What isn't working?

#1390431
Screen Shot 2019-11-23 at 9.42.21 PM.png
Screen Shot 2019-11-23 at 9.42.07 PM.png

Currently I have a series of views, content templates, and relationship forms that is allowing me to edit existing relationships (cast) that are connected with drama post types. Attached is an image of how the "Edit" link looks.

When you click "edit" for a specific person, you can edit this person's "role" for this specific "drama" post type. See 2nd image attached.

I have this code in my loop item for the view "Edit Link for Cast-Dramas".

[wpv-conditional if="( '[wpv-post-id]' eq '[wpv-attribute name="people"]' )"]
 
[cred-relationship-form-link form='edit-drama-cast' role_items='$fromViews' content_template_slug='editing-cast-drama']Edit[/cred-relationship-form-link]
 
[/wpv-conditional]

I have this all set-up the same way for post types "movies" and "specials", but the Edit link is not showing on those pages.

#1390449

If I remove the conditional, it shows of course, but the code is something that Waqar recommended that I add for "drama" post types.

#1390451

My issue is resolved now. Thank you!