Passer la navigation

[Résolu] Show value from custom field in another shortcode

This support ticket is created Il y a 4 years. 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 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Shane Il y a 4 years.

Assisté par: Shane.

Auteur
Publications
#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 lien caché

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="lien caché" 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

Les langues: Anglais (English )

Fuseau horaire: 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