Support » Fixing WordPress » Add Image Title to "wp_get_attachment_image"

  • Is there any way to inject the html title attribute (for an <img />) into the following function:

    wp_get_attachment_image($attachment->ID, 'full');

    This line pulls in the image from the page’s media gallery, but I’d like to generate a custom title for each image, outside of the image gallery’s title that is assigned to it.


  • The topic ‘Add Image Title to "wp_get_attachment_image"’ is closed to new replies.