I'm currently in the process of creating my first custom wp theme, in which the post contains the title, the content, the gallery, and also a div in between the title and content where as a background image I'd set the first image for the gallery below. I have tried using tons of different codes to get the first image from the gallery. Most versions of catch_that_image only work good on normal images, but not on galleries. I have tried using the function from THIS POST. It caught the first image good, but destroyed the sites gallery (no idea how it happened, new to this stuff).
Does anybody know a good way to find the first image of a gallery? Also I'd really appreciate an easy to get explanation. I'm really a 'just arrived' person here, trying to not go crazy.
Using the latest Wordpress version.