Home › Forums › Add-ons › Repeater Field › embed linked not showing in repeater
Hi
I want to show multiple embed links in one Modal, for this purpose I am using the ACF repeater loop. Let me share my existing code:
============================ code start ============================
<!– repeater-loop –>
<?php if (have_rows(‘conversation_detail_box’)) : ?>
<?php
$counter_video_box = 0;
while (have_rows(‘conversation_detail_box’)) : the_row();
// vars
$conversation_box_title = get_sub_field(‘conversation_box_title’);
$conversation_box_detail_text = get_sub_field(‘conversation_box_detail_text’);
$conversation_video_link = get_sub_field(‘conversation_video_link’);
?>
<div class=”kp-careers-row”>
<div class=”row justify-content-between align-items-center”>
<div class=”col-lg-3″>
<div class=”play-video-thumbnail”>
<div class=”embed-container”>
<?php the_field(‘conversation_video_link’); ?>
</div>
<!– <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/Ak6mmcilcho?rel=0&modestbranding=1&autohide=1&showinfo=0&controls=0″ frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe> –>
</div>
</div>
<div class=”col-lg-7″>
<div class=”kp-careers-content”>
<h2> <?php echo $conversation_box_title; ?> </h2>
<div class=”d-readmore-wrapp”>
<div class=”d-readmore” id=”d-readmore-0″ style=”transition-property: height, min-height; transition-duration: 650ms; transition-timing-function: ease; height: 5.1em;”>
<p class=”text-truncate-5″>
<?php echo $conversation_box_detail_text; ?>
</p>
</div>
</div>
</div>
</div>
<div class=”col-lg-2″>
<div class=”slider-btns-box”>
“> Play Video
</div>
</div>
</div>
</div>
<?php
$counter_video_box++;
endwhile; ?>
<?php endif; ?>
<!– repeater-loop –>
============================ code end ============================
Can anyone help me in this regard?
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re hard at work on ACF 6.1, and Beta 1 is now available 🚀
— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.