• Resolved ledevweb

    (@ledevweb)


    Hi,

    I’m displaying post thumbnail images in some Pods templates I’ve created.

    For SEO purpose, I need to get and add alternative text of that thumbnail images in those templates.

    Here is the line added to the template to display the thumbnail :

    <img src="{@post_thumbnail_url.medium_large}" />

    I wanted to know if there was a way, or a magic tag, to add the alt text of the thumbnail in the code. For example, something like this :

    <img src="{@post_thumbnail_url.medium_large}" alt="{@post_thumbnail.alt_text}" />

    I’ve searched a lot but didn’t find any solution…

    Thank for your answers ??

    • This topic was modified 4 years, 8 months ago by ledevweb.
Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @ledevweb

    I think you are searching for {@post_thumbnail.medium_large}. This would replace the whole <img> tag as it already generates one.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘How to get alt text of thumbnail image in Pods templates ?’ is closed to new replies.