Image Attributes not working
-
Hello,
After latest updates we’re not able to retrieve image caption or title.
<?php if( class_exists('Dynamic_Featured_Image') ) { global $dynamic_featured_image; global $post; $featured_images = $dynamic_featured_image->get_featured_images( $post->ID ); foreach($featured_images as $image) { $url = $image['full']; $caption = $dynamic_featured_image->get_image_caption($image['full']); $title = $dynamic_featured_image->get_image_title($image['full']); //print_r($featured_images); echo "<div class='side-thumb'><div class='screenshot'>"; echo "<a href='".$image['full']."' alt='".$caption."' title='".$title."' rel='lightbox'>"; echo "<img src='".$url."' title='".$title."' />"; echo "</a><div class='screenshot-caption screenshot-caption_right'><h3>"; echo $title; echo "</h3></div></div></div>"; } } ?>
The image is shown and classes are included however caption and title not showing.
Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Image Attributes not working’ is closed to new replies.