For the accepted answer to this question: calling-fancybox-gallery-with-other-link, how is it possible to do this while retaining the gallery reference since I have multiple galleries on the same page?
Here's my trigger link:
<a onclick="$('a.fancybox').eq(0).trigger('click'); return false;" href="<?php echo $image_path; ?>" data-fancybox-group="gallery_<?php echo $i; ?>" title="<?php the_title(); ?>">
<div class="portfolio_image image_holder"><img src="<?php echo $image_path; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" /></div>
</a>
And the gallery image link:
<a class="fancybox hideme" href="<?php echo $image_path; ?>" data-fancybox-group="gallery_<?php echo $i; ?>" title="<?php the_title(); ?>">
<img src="<?php echo $image_path; ?>" alt="" title="" width="724" height="<?php echo $height; ?>"/></a>