Passer la navigation

[Résolu] Including a page's featured image via a shortcode

This support ticket is created Il y a 3 années et 5 mois. 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.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 3 années et 5 mois.

Assisté par: Christopher Amirian.

Auteur
Publications
#2309093

Tell us what you are trying to do?
I am trying to use a Toolset shortcode to include a page's Featured Image. When using Views on other sites I could use [wpv-post-featured-image], but on this website I am only using the latest version of Types. I assumed there was an equivalent such as [types field='post-featured-image'][/types]?

Is there any documentation that you are following?
Can't find specific documentation on this

What is the link to your site?
lien caché

#2309627

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

With the Types plugin you can retrieve the custom fields that you have created with the types plugin using one of the shortcodes below depending on the custom field type that you used:

https://toolset.com/documentation/customizing-sites-using-php/functions/

But it does not allow to retrieve the native WordPress features. That is the job of the Views or the Blocks plugin.

Thank you.