I am trying to do a gallery index page (I have the gallery already done). What I am looking for right now is the gallery index with a row(s) with 2 images that will link to each gallery. Here is the code I am using:
<div class="col-md-6 gallery-headImage">
<?php
// check if the repeater field has rows of data
if( have_rows('gallery-index') ):
// loop through the rows of data
while ( have_rows('gallery-index') ) : the_row();
// display a sub field value
the_sub_field('galleryimage');
endwhile;
else :
// no rows found
endif;
?>
</div>
This is the output it is giving me.
3399, 3399, Christmas-2015-head, Christmas-2015-head.jpg, 117056, http://localhost/SECFS/wp-content/uploads/2018/06/Christmas-2015-head.jpg, http://localhost/SECFS/gallery/auto-draft/christmas-2015-head/, Little Grand Rapids City Unit, 3, , , christmas-2015-head, inherit, 3390, 2018-06-17 22:28:09, 2018-06-19 04:03:57, 0, image/jpeg, image, jpeg, http://localhost/SECFS/wp-includes/images/media/default.png, 1224, 477, Array3203, 3203, SECFS-strategic-intro, SECFS-strategic-intro.jpg, 38703, http://localhost/SECFS/wp-content/uploads/2018/01/SECFS-Strategic-Service-Planning-Session/SECFS-strategic-intro.jpg, http://localhost/SECFS/gallery/secfs-strategic-service-planning-session/secfs-strategic-intro-2/, , 3, , , secfs-strategic-intro-2, inherit, 3175, 2018-02-11 00:51:16, 2018-06-19 11:41:15, 0, image/jpeg, image, jpeg, http://localhost/SECFS/wp-includes/images/media/default.png, 1042, 249, Array
This is two (2) head images. Not sure what I am missing or where I went wrong. Any help would be greatly appreciated.
Thank you,
Vince