How can I add a single image from a gallery into the page header?
You can use get_post_galleries to return an array of all the galleries in a post. The data returned includes all the image URLs and IDs, so take your pick of those to suit your case. $galleries = get_post_galleries( ”, // assume current post, if not put a post ID here false, // return an array … Read more