WordPress.org

Ready to get started?Download WordPress

Forums

Polaroid Gallery
Multiple polaroid galleries on one page (1 post)

  1. daniel311
    Member
    Posted 1 year ago #

    I had to change one thing, to get multiple galleries working on one page without displaying all images of all galleries on that page.

    add this line:
    $my_id = "{$id}";

    above

    > $output .= "
    > <div class='polaroid-gallery galleryid-{$id}'>";

    find this line and chage the rel attribute:
    a href="'. $image[0] .'" title="'. $title .'" rel="polaroid_' . $my_id . '"

    Finally in your shortcode, add a distinct id for each gallery on your page.
    [gallery id="1" ids"..."]
    [gallery id="2" ids"..."]
    [gallery id="3" ids"..."]

    Could someone put this in the next release please, as I don't want to break my projects on each plugin update?

    http://wordpress.org/extend/plugins/polaroid-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.