Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if( class_exists('Dynamic_Featured_Image') ) {
- global $dynamic_featured_image;
- $featured_images = $dynamic_featured_image->get_featured_images( );
- echo '<img style="width:100%" src="'.wp_get_attachment_url( get_post_thumbnail_id($post->ID) ).'">';
- foreach( $featured_images as $image ) {
- echo "<a>";
- echo "<img src='{$image['thumb']}' alt='Dynamic Featured Image' />";
- }
- echo "</a>";
- }
- //You can now loop through the image to display them as required
- ?>
- }
Add Comment
Please, Sign In to add comment