Skip Navigation

[Resolved] Using shortcodes inside a form shortcode

This thread is resolved. Here is a description of the problem and solution.

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 5 years, 11 months ago. 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)

This topic contains 17 replies, has 2 voices.

Last updated by rafaelcmgt 5 years, 11 months ago.

Assisted by: Shane.

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

Languages: English (English )

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