How to get caption?
-
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 ) .'">'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to get caption?’ is closed to new replies.