Home › Forums › Add-ons › Repeater Field › Can't get data Gallery field a repeater field
<div class="col-md-7">
<div class="tab-content">
<?php
$key = 0;
// check if the repeater field has rows of data
if( have_rows('images_product') ):
// loop through the rows of data
while ( have_rows('images_product') ) : the_row();
// display a sub field value
$gallerry_bikes = the_sub_field('gallerry_bikes');
?>
<div class="tab-pane fade in <?php echo ($key==0)?'active' : ''; ?>" id="vs-car-tab-<?php echo $key?>" role="tabpanel">
<?php if( $gallerry_bikes ): ?>
<div class="pro-img">
<?php foreach( $gallery_bikes as $item ) : ?>
<div class="slick-slide" style="border: none;">
<div style="border: 1px solid #d7d7d7;position: absolute; width: 99%; height: 99%;display: block;">
<a class="smooth fancybox" href="<?php echo $item['url']; ?>" rel="group" title="<?php the_title(); ?>">
<img src="<?php echo $item['url']; ?>" alt="<?php the_title(); ?>">
</a>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="pro-thumb">
<?php foreach( $gallery_bikes as $item ) : ?>
<div class="slick-slide">
<img src="<?php echo $item['url']; ?>" alt="">
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
<?php $key+= 1;//}?>
<?php endwhile; endif; ?>
</div>
</div>
It’s not work
Notice: Array to string conversion in /home/domain.com/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php on line 822
Array, Array, Array, Array, Array
Please help me!
The topic ‘Can't get data Gallery field a repeater field’ is closed to new replies.
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 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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.