adding repeater

This commit is contained in:
Manish
2024-03-12 15:59:02 +05:45
parent c4d4fe8483
commit f67864277a
31 changed files with 47 additions and 179 deletions

View File

@ -2,25 +2,33 @@
<div class="ltn__about-us-area pt-120 pb-120">
<div class="container">
<div class="row">
<?php
if( have_rows('about', 228) ) :
// Loop through the repeater field
while( have_rows('about', 228) ) : the_row(); ?>
<div class="col-lg-6 align-self-center">
<div class="about-us-img-wrap about-img-left">
<img src="<?php echo get_template_directory_uri(); ?>/img/others/about.png" alt="About Us Image">
<img src="<?php the_sub_field('image'); ?>" alt="About Us Image">
</div>
</div>
<div class="col-lg-6 align-self-center">
<div class="about-us-info-wrap">
<div class="section-title-area ltn__section-title-2">
<h6 class="section-subtitle ltn__secondary-color">About Us</h6>
<h1 class="section-title">ABC Hospitality</h1>
<h1 class="section-title"><?php the_sub_field('title');?></h1>
</div>
<p>Welcome to ABC Hospitality Business, an esteemed player in the field of uniform craftsmanship.
Operating under the legal entity ABC Hospitality Business, we take pride in our pivotal role in
the supply and trading of meticulously crafted uniforms, reinforcing our commitment to
excellence in the dynamic hospitality industry.</p>
<p><?php the_sub_field('description'); ?></p>
</div>
<a href="about-us.php"> <button class='btn btn-custom-color'>Read More</button></a>
</div>
<?php
endwhile;
endif;
?>
</div>
</div>
</div>