Hi Guys,
Absolutely love this plugin, so simple and I use it on pretty much every WordPress job I do. Normally I have no issues what so ever, but this current project is causing me issues.
I have a custom post type called “Products” and I have a custom page template called “Bracelets”. The braclets custom template is calling in a query which searches for a particular featured image. The code I have for this part is as follows
<a href="<?php the_permalink(); ?>" rel="lightbox"><?php the_post_thumbnail('product-image');?></a>
As this is a featured image I thought it would need the link to itself adding in order to initialise the lightbox. I also added in the rel=”lightbox” part also. However when an image is clicked it simply takes it to the attachment page and does not open the lightbox.
I have no errors appearing in Chrome Developer Tools it just simply is ignoring the images.
Can anybody suggest anything or indeed a help for this as I have been racking my brains for hours. I have removed the link and rel tag in the code. I have de-activated all plugins bar this one. Most plugins I use tend to me 99% the same everytime so it isn’t a conflict.
Be really great if I could get this fixed as the site is almost ready to go live.
Cheers
Dan