Is there any possibility on Wordpress to get an image from a post gallery? Images are not inserted in the post, are on it's gallery. I'm trying to do a "galleries index" page and instead having the user set a "cover image" I'd like to take any of the attached to the post as part of a gallery.
I tried the wp_get_attachment_image() with no luck, I think because it works for inserted images, not the ones on it's gallery.
Thanks in advance.
Juan.-