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
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/