Created
September 18, 2015 14:12
-
-
Save mattradford/d257231a16896c7f203a to your computer and use it in GitHub Desktop.
ACF slick slider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( have_rows('billboard') ): ?> | |
<div class="billboard"> | |
<?php while( have_rows('billboard') ): the_row(); | |
$imageArray = get_sub_field('image'); | |
$imageURL = $imageArray['url']; | |
?> | |
<div class="slide-item" style="background-image: url('<?php echo $imageURL;?>');" > | |
<h1><?php the_sub_field('title'); ?></h1> | |
</div> | |
<?php endwhile; ?> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment