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


Can't get data Gallery field a repeater field

  •                             <div class="col-md-7">
                   					<div class="tab-content">
            							$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(); ?>">
    <?php endforeach; ?>
                    <div class="pro-thumb">
    <?php foreach( $gallery_bikes as $item ) : ?>
                                <div class="slick-slide">
                                    <img src="<?php echo $item['url']; ?>" alt="">
    <?php endforeach; ?>
    <?php endif; ?>										
                                            <?php $key+= 1;//}?>
                                        <?php    endwhile; endif;  ?>

    It’s not work
    Notice: Array to string conversion in /home/ on line 822
    Array, Array, Array, Array, Array

    Please help me!

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

The topic ‘Can't get data Gallery field a repeater field’ is closed to new replies.