Forum Replies Created

Viewing 1 replies (of 1 total)
  • There are two answers to this question that involve varying amounts of work.

    The first answer works with basic wordpress. You need to create a different page or post, mark that page or post private, and upload the images for the second gallery into that page *only*. You will then need to get the ID for that page. Depending on how you have configured wordpress this process will vary. If your permalinks are set to the default setting, then the ID for the page is the part of the permalink after ?p=, for other types of permalinks the easiest thing I’ve found is to create the page, put the images on the page you want, publish the page (with it marked private this doesn’t *really* publish it), then view the page, and at the bottom where there is an Edit Page link or button, mouse over that link and get the popup, and in that popup will be the ID. It will be the number after the post= part.

    Write down that ID number, then go back to the page where you want both galleries to show up. Presumably you already have the images for the first gallery uploaded to this page, and you already have the first gallery in place. Simply add a second gallery to the page where you want the second set of images to show up. Once the gallery is added, switch from the visual editor to the html editor and go to the second gallery code. Inside that gallery, add id=”<number>” to the second gallery item where <number> is replaced by the ID of the private page you created above. This will now give you two different galleries on the same page.

    The long and the short of this is that galleries are tied to page IDs in the database. To split galleries up, the pictures must be *uploaded* to different pages as it’s the upload process that ties the picture to the page. Once they are uploaded on a page and exist in the media library attached to that page, they can be *displayed* on any page by simply using the gallery item with the id=”<number of page pictures were uploaded to>” technique. So, private pages or posts can be used to split up pictures into any number of different galleries that you wish.

    The second option, which is a much heavier solution, is to use something like Gallery2 to handle your photos, and use the WPG2 plugin to integrate it into WordPress.

Viewing 1 replies (of 1 total)