$galleryArray = get_post_gallery_ids(); foreach ( $galleryArray as $id ) { echo '<img src="https://wordpress.org/plugins/featured-galleries/' . wp_get_attachment_url( $id ) .'">'; 関連