retrieve an image attachment’s alt text?

Home Forums WordPress retrieve an image attachment’s alt text?

This topic contains 1 reply, has 2 voices, and was last updated by  Sushmita Ghosh 1 year, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1487

    Priyashagoswamy
    Participant

    How to retrieve an image attachment’s alt text?

    #1488

    Sushmita Ghosh
    Keymaster

    The wp_get_attachment_image() function which will return an HTML string containing these attributes:

    ‘src’

    ‘class’

    ‘alt’

    ‘title’

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Pasham Technology © 2018 Pasham Technologies