• Hi,

    I’ve read the documentation about the gallery shortcode.

    The id of this shortcode is a composition of images ids.

    What I need is to store my gallery object somewhere, to include the same gallery in two differents posts.

    Example:
    My gallery includes images 001 and 002, so the object will be:
    – id=”1″
    – images=”001, 002″

    And then include the shortcode in my posts:

    Post 1:

    TEXT TEXT TEXT
    [gallery id="1"]
    TEXT TEXT TEXT

    Post 2:

    TEXT TEXT TEXT
    [gallery id="1"]
    TEXT TEXT TEXT

    Doing that, if I update the images ids list of the gallery, I don’t need to maintain the posts one by one. I only need to update the gallery once.

    Thank you,

    Jean

Viewing 2 replies - 1 through 2 (of 2 total)
  • Matt Knowles

    (@aestheticdesign)

    You would be better off using one of the many gallery plugins that work that way rather than the WordPress gallery feature. There are a number of them that I’ve used and I use different ones for different projects because none of them do everything.

    Best thing to do is install a few and try them out.

    Thread Starter JeanThoumelin

    (@jeanthoumelin)

    Thank you Matt.

    I’ve seen many gallery plugins, and there are probably some that do the job. The thing is the WordPress gallery feature makes what I need. I don’t really need more and I prefer to reduce the number of plugins I use.

    I don’t need more…except that ID stuff. :/

    I just want to know if there is a solution to my problem, without any extra plugin. If not, I will may use one of the gallery plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gallery shortcode : unique ID’ is closed to new replies.