Ready to get started?Download WordPress


Add Image Title to "wp_get_attachment_image" (1 post)

  1. foochuck
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic