Saltar navegación

[Resuelto] Using shortcodes inside a form shortcode

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to use a custom shortcode in the child post selection for the relationship forms.

Solution:

This is actually possible and can be done by doing the following.
[cred-relationship-form form='my-form' parent_item='$current' child_item='[my-shortcode]']

This support ticket is created hace 6 años, 1 mes. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 17 respuestas, tiene 2 mensajes.

Última actualización por rafaelcmgt hace 6 años, 1 mes.

Asistido por: Shane.

Autor
Mensajes
#1160577

Hi Shane,

Good news. I setup your shortcode in my custom functions plugin (previously, I deleted what you wrote in functions.php) and it's working properly. Actually, it is the same shortcode I wrote. Unfortunately, I made a mistake in the variable returned by the shortcode and it didn't worked.

This solved my problem. Thank you.

#1160846

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Rafael,

Awesome.

If there are no further queries then you can mark this one as resolved.

Thanks,
Shane

#1161406

My issue is resolved now. Thank you!