diff --git a/responsive-images.php b/responsive-images.php index a977e81..110c8b9 100644 --- a/responsive-images.php +++ b/responsive-images.php @@ -47,6 +47,11 @@ $title = $file->title(); } + if(empty($caption) and $file->caption() != '') { + $caption = $file->caption(); + } + + } if(empty($alt)) $alt = pathinfo($url, PATHINFO_FILENAME);