If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
right now my portfolio images are linked to show the full size picture in a lightbox overlay.
how can i manage to show all images that are attached to the post in the lightbox.
so one click would open the first attached immage and then you can navigate to the next (lika a gallery ).
i played around with the wordpress build in shortcode:
works when showing a single post. if you click the feature image all images connected to the post are added to the lightbox.
maybe this can be used somehow to link the portfolio images to lightbox in the portfolio template..
all my best
i marked the topic as solved because i found a workaround.
right now i am using no more lightbox anymore.
the easy fancybox plugin lets you create galleries in a div and hides the images from the main page.
whenever fancybox is opened the images will show up in addition to the portfolio image. pretty cool.
the theme must allow to do shortcodes in the excerpt for the portfolio – that’s the trick of how i got it done this. time.
you can achieve this by adding:
add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode');
to the functions.php of the theme.
all my best
The topic ‘portfolio lightbox gallery’ is closed to new replies.