• Hello, eight months ago I wrote about the wish to be able to reuse image galleries in other posts. In other words having an entity called, let’s say Gallery, that is separate from posts and pages and can be updated and dropped in multiple posts via shortcode.

    Now I already know there are plenty of image gallery plugins out there.

    But they seem to come with a log of baggage: heavy code, potential for conflict and worse of all poor clunky layouts that conflict with existing layouts. (I looked at one of the best known image gallery plugins today and I was disgusted with all the clunky, dated layouts. I would have to spend so much time shaping its css and html to match my layout!)

    There are some of us that already have simple but effective gallery layouts that work just fine. I neither need nor want the layouts of some image gallery plugin. I just want the function to be able to store galleries outside the posts, update them, and reuse them across other pages and avoid the baggage that comes with the typical gallery plugin in terms of layout fiascos others dreamed up.

    Perhaps this has already been done in a plugin?

    • This topic was modified 7 years, 11 months ago by Alex T..
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator cubecolour

    (@numeeja)

    If you have a gallery on a page (or post) made up of images attached to that page, you should be able to make a gallery using the same images elsewhere by using the gallery shortcode with the id parameter.

    You can include the same gallery on another page by including the gallery shortcode: [gallery id="111"] where the value of the ID parameter is the post page ID.

    The page/post’s id isn’t exposed by default, but you can install a plugin to show the post/page id (eg Reveal IDs)

    Thread Starter Alex T.

    (@polaatx)

    Ah, what a nice trick! It works great. I realized it even works when displaying galleries inside draft posts.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ability to REUSE galleries in other posts’ is closed to new replies.