WordPress.org

Ready to get started?Download WordPress

Forums

Multiple galleries? (14 posts)

  1. Schleicher
    Member
    Posted 4 years ago #

    I saw in the new features that you should be able to add multiple galleries to a single post, yet can't find any way to do this?

    Help?

  2. Schleicher
    Member
    Posted 4 years ago #

    I'm bumping this one again, because it should have a simple answer (or at least documentation somewhere). It was specifically announced that multiple galleries per page were now allowed, but how do you do it?

  3. thepaperdump
    Member
    Posted 4 years ago #

    double bump, this feature is v.v.v.important to us ~

  4. Justin Tadlock
    Member
    Posted 4 years ago #

    This is how you do it:

    [gallery]
    [gallery]
    [gallery]

    Of course, I still don't think you can exclude/include or set the number of images like you can with Cleaner Gallery:
    http://wordpress.org/extend/plugins/cleaner-gallery

  5. thepaperdump
    Member
    Posted 4 years ago #

    how can it tell the difference between each gallery?

  6. Justin Tadlock
    Member
    Posted 4 years ago #

    It sets up a static variable that iterates for each instance of the gallery.

  7. Schleicher
    Member
    Posted 4 years ago #

    If that is the case, then the creators should have promoted this as multiple galleries per page, as the 2.7 version could already do this. It would seem if you say, "Multiple galleries per post" it implies you can display images 1-10 in gallery 1, 11-20 in gallery 2, and so on.

    And Cleaner-Gallery doesn't work with Flexible Lightbox, so that solution is out too.

    Anyone else know of a solution? This was the main reason for upgrading to wp2.8.

  8. Justin Tadlock
    Member
    Posted 4 years ago #

    It would seem if you say, "Multiple galleries per post" it implies you can display images 1-10 in gallery 1, 11-20 in gallery 2, and so on.

    It makes no such implication. It simply means you can show multiple galleries in a single post/page.

    Add this to a post (changing the IDs, of course):

    [gallery id="105"]
    [gallery id="102"]

    It gives you two different galleries. That's "multiple galleries."

    And Cleaner-Gallery doesn't work with Flexible Lightbox, so that solution is out too.

    You can always manually install Lightbox or find another plugin to do it for you.

  9. tls23
    Member
    Posted 4 years ago #

    It would seem if you say, "Multiple galleries per post" it implies you can display images 1-10 in gallery 1, 11-20 in gallery 2, and so on.

    I read it that way, too. Not being someone who works with code, it had no ambivalent meaning for me.

  10. tls23
    Member
    Posted 4 years ago #

    Am trying the looooong way around. Have deleted all the images I don't want in the first gallery and have uploaded the first gallery without these images.

    Now I am uploading the next batch of images. I suspect it will include the first batch in the second gallery, and even worse, it will add the second batch to the first gallery when I "save all changes".

    Hrrrmmppppph! But I persevere ...

    If it works, I'll be back!

  11. tls23
    Member
    Posted 4 years ago #

    Okay! So, I was right. It has added the second batch to the first batch once I "saved all changes". What to do? What to do? Wait for the next upgrade? Dunno ...

    Help!

  12. Kaspars
    Member
    Posted 4 years ago #

    I have just released a plugin that does exactly that -- Multiple Galleries: http://konstruktors.com/blog/projects-services/wordpress-plugins/multiple-galleries/

  13. IdeFixx
    Member
    Posted 4 years ago #

    Hi kasparsd,
    your plug-in is really cool, mainly for WP as a CMS. Thanks!

    Just a little modification is needed in the "multiple-galleries.js" file on the line 61 (commas between picture IDs):
    $to_include += '' + $imgid + ',';

    BTW. restart browser (in my case Firefox) after changing this line.

  14. ggsalas
    Member
    Posted 4 years ago #

    I have just released a plugin that does exactly that -- Multiple Galleries: http://konstruktors.com/blog/projects-services/wordpress-plugins/multiple-galleries/

    kasparsd, your plug-in is excellent. I hope that will soon be on the list of plugins on wordpress.org.

    The modification of idefixx works perfect.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic