Navigation überspringen

[Gelöst] Show value from custom field in another shortcode

This support ticket is created vor 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 -

Zeitzone des Unterstützers: America/Jamaica (GMT-05:00)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Shane vor 4 years.

Assistiert von: Shane.

Author
Artikel
#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 versteckter 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="versteckter 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
Unterstützer

Sprachen: Englisch (English )

Zeitzone: 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