Instead of the_title()
try this: echo get_the_title($_img)
. It should only work inside the foreach loop.
Related Posts:
- Prevent WordPress from adding image’ title automatically
- Bulk edit wordpress images alt and title attributes
- How to remove title attribute from gallery links and images
- how automatically show the image title before the image caption/description in a wordpress gallery?
- Overide Gallery Default Link to Settings
- get_post_gallery with Gutenberg
- Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress
- How to have different captions for same image, for galleries?
- WP 3.5 and Galleries – how to count images?
- Navigate with keyboard in Gallery shortcode
- Cropped featured image replaces original image in gallery
- Change the output for [gallery] shortcode
- How do you modify the HTML output of a Gallery item (using the gallery shortcode)?
- How to include externally hosted images into a gallery block
- Dynamically add titles to post images if they are empty
- Excludes posts that don’t have attachments in the_content()
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- How can I make all gallery images to open in a new window?
- The WordPress Gallery, Grabbing The Link and Images?
- How to force WordPress to add new images at the beginning of the gallery?
- get attributes/part of the gallery shortcode
- Editing built in Gallery shortcode to filter by categories
- Gallery images stored elsewhere (preferably Google Drive)
- WordPress gallery previous/next buttons showing all media library images
- Any way to “combine” galleries or show multiple galleries as one?
- Gallery post images on homepage?
- How to create a simple slideshow out of a post image gallery?
- How to change the target size of images clicked on in WordPress standard gallery
- Exclude featured image from gallery in wp-admin
- How to display alt tags in img src?
- WooCommerce-like featured gallery
- Override img class in gallery
- Pull Random Attachments With Pagination
- Extracting gallery images in WordPress 3.5 on index.php
- wordpress get gallery images title
- How to use photo in multiple posts?
- Exclude images from “inserted into post” when trying to get attachments
- Turn off image captions in gallery view?
- Customizing the attachement page to show rest of all images in a gallery from post
- Unyson Framework doesn’t show gallery images
- Retrieve an array of image URLs that belong to a gallery
- Ho to add “Create Slider” option to default “Add Media” popup?
- How to make a gallery with dynamic images from URLs?
- How can I display an image description, from an image gallery?
- Creating a post image to show in a gallery
- Don’t show images inserted into content
- Gallery with thumbnail carousel
- Ways to show multiple, separate galleries per post?
- Native gallery sorting is ignored
- convert post title to image
- Using Jetpack carousel w/o creating a gallery [closed]
- How to get the Gallery form/section just like in Gutenberg block?
- Load Gallery Images with Title on Homepage BX Slider
- Get all image IDs from the Media Library
- Re-ordering images in existing post in wordpress 3.6.1
- What can i do add title to ‘large’ image?
- Autosort uploads in galleries by filename
- How to display original unmodified thumbnail
- One picture belonging different galleries?
- Allow users to contribute images to a post
- How to get the title of the random images from media library?
- How to remove the images from “Uploaded to this post”?
- limit number of images shown from gallery
- What is the plugin to import image from URL?
- Pagination between images (active/inactive)
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- photo gallery implementation like tmz
- How do I display the featured image from an image gallery using a reference in code? (example within)
- How to enlarge thumbnail on mouseover?
- attach several images to post + gallery
- get_post_gallery with Gutenberg
- Allow users to upload and display multiple photos
- How to change Gallery image url in product page ? In function.php?
- How do you obtain a list of all image file names on a wordpress website for replacement?
- Implementing a modal(lightbox) for all images in all post-gallery posts
- Images getting smashed
- get_the_post_thumbnail() title and alt attributes not displaying
- How to re-arrange images in default WP Gallery more than one image at once?
- Convert multiple image blocks to gallery block in Gutenberg?
- Images 404 after wp migration to a subdomain
- How to automatically load an image inside the post, since it is present in uploads folder
- Exclude first image from a Woocommerce image gallery
- Gallery Images could not be shown
- Gallery with shortcode not showing
- attachment.php & flexslider—linking thumbnail to specific image
- How to display every pictures from all the posts on one page?
- How to add multiple images in a page
- Breadcrumbs for Single Image page
- Show title when inserting single images
- Multiple gallery thumnbnails on one page
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- wp_get_attachment_link() add rel attribute if the link points to direct image
- Paginate Gallery [closed]
- How do I set the sizes of my thumbnails when inserting a [gallery]?
- *box for images displayed as a post’s [gallery] [duplicate]
- Getting top Image From the Gallery and printing out a thumbnail with Exact Dimensions
- Adding different classes to different images depending on size for fine control of image layout in posts
- Automatically adding blog images to a portfolio/gallery
- Image Attachments Query Not Working If Post Is Loaded Via Ajax