Pulling in the multiple images
-
Hi,
Great plugin!
I’m trying to set the featured images as div background images but if I repeat it then it just uses the same images for all divs. How do you pull in featured image 1, featured image 2 etc so they’re separate?
I have the below code:
<?php global $dynamic_featured_image; $featured_images = $dynamic_featured_image->get_featured_images( ); ?> <?php foreach($featured_images as $images) {?> <div id="bg1" style="background-image:url(<?php echo $images['full']; ?>)"><?php }?></div>
Thanks.
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Pulling in the multiple images’ is closed to new replies.