New answers tagged wp-get-attachment-image
For this feature to work the images must be uploaded to the media library from that page. In other words, clicking the "Add Media" button and adding images already in your media library won't do it. You must click "Add Media" then "Upload Images" and add them to the page.
A little background: WP stores the attachments in the same database table as posts. Therefore the table rows correspond to the fields of the media edit modal: get_post_gallery_images will return you URLs to the images, but not the actual data in the database. You could do a reverse-query and look for posts that contain the image URL but that would be more ...
Top 50 recent answers are included