Support

Account

Home Forums Add-ons Repeater Field Can't get data Gallery field a repeater field

Helping

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!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.