Created
December 6, 2018 21:31
-
-
Save s3w47m88/f87deff38801f17e51be378f86482307 to your computer and use it in GitHub Desktop.
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
if( have_rows('tt_front_page_image_calls_to_action_right_column_images') ): | |
$count = 1; | |
if ( $count % 6 == 1 ) { | |
$value = "myClass"; | |
} else if ( $count % 6 == 4 ) { | |
$value = "myClass"; | |
} else { | |
$value = ''; | |
} | |
while ( have_rows('tt_front_page_image_calls_to_action_right_column_images') ) : the_row(); | |
echo "<div class='col-md-4 col-sm-12 " . $value . "'>"; | |
echo "<img class='tt-explore-section-trailers-image' src='" . get_sub_field('tt_front_page_image_calls_to_action_right_column_images_image') . "' />"; | |
echo "</div>"; | |
$count++; | |
endwhile; | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment