Gallery shortcode : unique ID
-
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 TEXTPost 2:
TEXT TEXT TEXT
[gallery id="1"]
TEXT TEXT TEXTDoing 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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Gallery shortcode : unique ID’ is closed to new replies.