If you have the attachment id, you can use get_the_title()
$attachment_title = get_the_title($attach_id)
Related Posts:
- Prevent WordPress from adding image’ title automatically
- Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress
- Bulk edit wordpress images alt and title attributes
- Adding HTML within an image title attribute
- Dynamically add titles to post images if they are empty
- How to remove title attribute from gallery links and images
- Filter to modify post_title after image upload?
- What’s the proper way to use the get_image_tag filter?
- How to display alt tags in img src?
- convert post title to image
- What can i do add title to ‘large’ image?
- How to get the title of the random images from media library?
- Link to products with the same image title (woocommerce)
- how automatically show the image title before the image caption/description in a wordpress gallery?
- get_the_post_thumbnail() title and alt attributes not displaying
- How to automatically load an image inside the post, since it is present in uploads folder
- Show WordPress Image Title Under Custom Portfolio Image
- Show title when inserting single images
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Display image title and caption inside a single post
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- How to set the default embed image size
- Remove title attribute from images
- How do you modify the HTML output of a Gallery item (using the gallery shortcode)?
- How to associate an image with a term taxononmy and publish it on frontpage?
- copy attachment title to description and alt text
- HTTP Error when trying to upload image
- Media sizes aren’t being created – server config?
- WordPress login page logo customization
- New image size option not showing
- Make alt text required when setting a featured image
- Images not showing after moving site (but path id OK)
- Best way to strip character entities (%20 etc)
- Any way to “combine” galleries or show multiple galleries as one?
- 3.5 media.editor: what is the event listener for choosing an image?
- Display latest 12 images from media library
- Show featured image option not in screen options
- How to set a contact forms total size limit
- Get thumbnail url of custom meta image?
- SEO – Media File Name Updating
- All Images on wordpress site broken
- Multiple images in one attachment page
- How to keep WP from recompressing Full Size images
- How to use photo in multiple posts?
- Missing a temporary folder.error when image is uploaded in admin Set temporary Directory – WordPress 5.2.2
- Hero image cropped at different dimensions
- Locally Developing a wordpress website, cant get images to display?
- Is it ok to paste a WordPress Image URL into a post?
- How do I track down the origin of the alt text on a particular image?
- Problem Cropping Images From WP Customizer
- How can I display an image description, from an image gallery?
- How to add images to a post without inserting them into the content area of the post editor?
- Is it possible to reduce image filesize on the fly (when users enter my website)?
- How to get Image `alt` value from WordPress image attachment?
- Why WordPress strips scr string from img tag off?
- Random image loader
- insert image alongwith with custom data via a frontend form
- Create a link to full-sized image attachment?
- Get image path : image is upload but not attached
- What sense makes medium_large_size_h => 0?
- Images not showing in media grid view (but showing in list view)
- How to test if there are no more previous or next image on attachment page?
- Force square image crop during upload?
- Emoticons not working on my site
- How to use getimagesize() of image upload?
- limit number of images shown from gallery
- photo gallery implementation like tmz
- Graphics and Formatting Not Loading in WordPress on IIS
- How to Automatically import external images to Upload
- Edit Page did not get refresh after update
- get_post_gallery with Gutenberg
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Fullscreen Page Background without Plugin [closed]
- How to avoid images appear as post in google search?
- When upload a PNG a noise appears in the thumbnails
- How to stop TinyMce from converting image url into ?
- Generate links on all images in posts – is there a hook?
- Decide how Hero image appears on mobile
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Can’t figure out how to get space around an image? [closed]
- Set WordPress to Create different images format later, not during upload
- If file exists with page slug name show image else nothing
- How might one programmatically set the link for all images in all posts?
- page displaying media caption shortcodes
- Display different Images depending on the current day
- How to associate an image with a term taxononmy and publish it on frontpage?
- How to add a credit line to a photo caption
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- Broken image URL
- Uploading Images for a section
- Some images suddenly not appearing
- WordPress: Preload next post images
- Image not showing in an archive page
- Set add_image_size() greater than content width in media box
- Remote Image (from URL) as Media Library element
- Theme using masonry layout script rendering overlaped images in Google Chrome [closed]
- Why is inline CSS added to images automatically? [closed]
- WordPress Missing Images
- Display first image’s caption
- The uploaded images are only full-size (original)