Skip Navigation

[Resolved] Data from toolset form to be inserted into an audio player shortcode

This support ticket is created 3 years, 9 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1656673

I'm trying to make it possible for psycologists(user type) to add Podcast episodes to the website. I've created a form in their admin to add the data.

The shortcode looks like this:
[fusebox_track_player url="" title="" image="" social_twitter="false" background="default"]

In the admin form there is a field for:
URL
IMAGE
TITLE
and more..

If I insert the fields in the shortcode in the content template, the shortcode is broken by " and 's.
I've tried to output the data in views and then the views in the shortcode instead, same result.

How can I get the data from the form fields into the shortcode like url="data_from_form_field", without breaking the shortcode?

Thanks
Best regards
Lykke

#1656705

Hello,

I assume you are going to display the Types shortcode within shortcode [fusebox_track_player], for example:

[fusebox_track_player url="[types field="url"][/types]" ...]

The shortcode within shortcode feature is a built-in feature of Toolset plugins, but I am not sure if your shortcode [fusebox_track_player] supports this feature, I suggest you try this:
Dashboad-> Toolset-> Settings-> Front-end Content,
in section "Third-party shortcode arguments", add shortcode name: fusebox_track_player, and test again.

More help:
https://toolset.com/documentation/user-guides/views/shortcodes-within-shortcodes/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.