Skip Navigation

[Resolved] Show value from custom field in another shortcode

This support ticket is created 2 years, 6 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 1 reply, has 2 voices.

Last updated by Shane 2 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2372597

Hello, i got real estate website created with toolset. So far so good.
Now i wan to show 3d virtual tour from matterport.com. So i activate this module hidden link

I got toolset custom field with url value (filled with url of tour):
[types field='3d-tour-matterport-com-url'][/types]

Matterport plugin use this shortcode to show 3d tour:
[matterport src="hidden link" width="900"]

SO I wan to combine it. I try this:
[matterport src="[types field='3d-tour-matterport-com-url'][/types]" width="900"]

But i got some error.

Many thanks for help <3

#2372761

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

If the matterport shortcode accepts a shortcode as a parameter then you need to pass the raw value into it.

The types shortcode here [types field='3d-tour-matterport-com-url'][/types] will generate an html link but you need the raw value.

To get the raw value please try using [types field='3d-tour-matterport-com-url' output='url'][/types]

Please let me know if this helps.
Thanks,
Shane