Replies: 0
What do I need to add to this to display caption text that can be set in the admin panel when I add a photo to gallery?
$galleryArray = get_post_gallery_ids();
foreach ( $galleryArray as $id ) {
echo '<img src="' . wp_get_attachment_url( $id ) .'">';
}