Skip Navigation

[Fermé] Shortcode to display images title and alt text

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.

This topic contains 1 réponse, has 2 voix.

Last updated by emerson Il y a 8 années et 3 mois.

Assigned support staff: emerson.

Auteur
Publications
#144585

Hello,

is there already a solution to display alt and title for an image?
Something like [types field="slider" alt="[wpv-image-title]" title="[wpv-image-alt]" size="full" ][/types]

Title/alt should come from WordPress media manager settings.

Best,
Daniel

#144667
image_title_alt_from_media_library.jpg

Dear Daniel,
Yes the latest version of Types (version 1.4.0.2) available here: https://toolset.com/my-account/downloads/ supports this. What it will do is that when you go to the Types "T" icon in the editor and click to insert an image shortcode. It will retrieve the title and alt text automatically if they are set already in the media library (see screenshot). You don't need to specify additional shortcodes to retrieve the image title and alt. Types will retrieved them automatically. Please let me know how it goes. Thanks.

Cheers,
Emerson

Le sujet ‘[Fermé] Shortcode to display images title and alt text’ est fermé à de nouvelles réponses.