Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10149

    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 ).

    best regards

    #67068

    i played around with the wordpress build in shortcode:

    [gallery link="file"]

    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

    thomas

    #67069

    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

    thomas

    #67070

    Hey!

    Great thomas, glad you were able to solve it, and thanks for posting you solution so other can benefit!

    Best regards,

    Kriesi

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘portfolio lightbox gallery’ is closed to new replies.