Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    I’ve got a similar-ish query. I’ve amended the single.php page to use ‘posts’ as individual portfolio piece examples for this site (http://www.lalleylalley.co.uk/?p=52) and used the Advanced Custom Fields plugin with the Repeater add-on to add multiple images easily. However, these images don’t seem to be picking up the colorBox classes.

    I got round this by physically adding class=”colorbox-link” to the link, but it won’t string them together so that you can scroll. I think I’ve got all the options selected for this to work. What am I doing wrong?

    Many thanks…

    <?php if(get_field('project_gallery')): ?>
    	<?php while(the_repeater_field('project_gallery')): ?>
     				<?php $image = wp_get_attachment_image_src(get_sub_field('project_gallery_image'), 'full'); ?>
    			<?php $thumb = wp_get_attachment_image_src(get_sub_field('project_gallery_image'), 'thumbnail'); ?>
    	    	<a href="<?php echo $image[0]; ?>" class="colorbox-link"><img src="<?php echo $thumb[0]; ?>"/></a>
    
    	<?php endwhile; ?>
    <?php endif; ?>
Viewing 1 replies (of 1 total)