What does this PHP do?

mail@pastecode.io avatar
unknown
php
3 years ago
718 B
4
Indexable
Never
<?php
	$project_title = get_field('project_title');
?>

<div class="carousel-container container-fluid">
	<div class="row carousel-container__row">
		<div class="col-lg-12">
		    
			<h2 class="carousel-container__row__title text-center text-md-start">
				<?php echo $project_title;?>
			</h2>
			<div class="responsive slider">
	            
	            <?php 
				if( have_rows('projects_rows') ):
				    while( have_rows('projects_rows') ) : the_row();
				    	$get_project_img = get_sub_field('project_image');
				?>
						<div>
							<img src="<?php echo esc_url($get_project_img['url']);?>" alt="Proejct" />
						</div>
			
				<?php 
				    endwhile;
				endif;
				?>
			</div>
		</div>
	</div>
</div>