Guest User

Untitled

a guest
May 3rd, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php if( class_exists('Dynamic_Featured_Image') ) {
  2. global $dynamic_featured_image;
  3. $featured_images = $dynamic_featured_image->get_featured_images( );
  4. echo '<img style="width:100%" src="'.wp_get_attachment_url( get_post_thumbnail_id($post->ID) ).'">';
  5.  
  6. foreach( $featured_images as $image ) {
  7. echo "<a>";
  8. echo "<img src='{$image['thumb']}' alt='Dynamic Featured Image' />";
  9.  
  10. }
  11. echo "</a>";
  12.  
  13. }
  14.  
  15. //You can now loop through the image to display them as required
  16.  
  17. ?>
  18. }
Add Comment
Please, Sign In to add comment