Navigation überspringen

[Gelöst] Using shortcodes inside a form shortcode

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 6 Jahren, 1 Monat. 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)

Dieses Thema enthält 17 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von rafaelcmgt vor 6 Jahren, 1 Monat.

Assistiert von: Shane.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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!