Right now, I have a Filterable portfolio on my “Portfolio Page”. Each piece/series in the portfolio has it’s own thumbnail that links to the post with a gallery of images. So, clicking on a thumbnail takes you to a new page. Instead of linking to a different page, I want the gallery to appear above the thumbnails in a lightbox on the portfolio page.
Here is a snippet of code that shows how the thumbnail is being linked.
<li class="<?php echo $catSlug; ?>">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" target="_top"><?php the_post_thumbnail(); ?></a>
<p><?php the_title(); ?></p>
How can I link to a Lightbox Gallery instead?
Thanks in advance!