Created
December 6, 2018 21:31
-
-
Save s3w47m88/df55cc04b6e04181f66b2d9378cead7b 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