Title: Wrong gallery selected
Last modified: December 12, 2022

---

# Wrong gallery selected

 *  Resolved [briansps](https://wordpress.org/support/users/briansps/)
 * (@briansps)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/)
 * I have inserted a gallery into a post, uploaded it and then viewed page. I then
   went to live site and checked that it was correct. I then selected another similar
   post and the gallery from the previous post was shown. I have repeated this several
   times and always get same result. I have been developing this series of posts
   for a few days but only noted the error today 12/12.
    I was using most recent
   update and then roll backed 1 update without any change.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwrong-gallery-selected%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [briansps](https://wordpress.org/support/users/briansps/)
 * (@briansps)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16293491)
 * I have done further research with all plugins deactivated, I reset 5 posts to
   select the correct gallery. Checked them with a view in editing process. When
   I visited the site and selected a gallery, the gallery shown was that of the 
   last edit.
 * I would like to know of progress on this issue.
 *  Thread Starter [briansps](https://wordpress.org/support/users/briansps/)
 * (@briansps)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16300069)
 * Checking the code for this call it refers to the correct gallery slug and the
   slug in that gallery is correct. But another gallery is selected.
 *  Plugin Support [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * (@nikitaanisimov)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16300253)
 * Dear [@briansps](https://wordpress.org/support/users/briansps/), hello,
 * Sorry to hear about the issue and thank you for such a detailed report,
   Could
   you kindly specify the id of the gallery1) that is supposed to be shown on the
   page2) that is currently shown there now?
 *  Thread Starter [briansps](https://wordpress.org/support/users/briansps/)
 * (@briansps)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16300429)
 * [https://www.staffordphotosociety.org.uk/images-of-members/michelle-sanderson-4/(opens in a new tab)](https://www.staffordphotosociety.org.uk/images-of-members/michelle-sanderson-4/)
   this is an exmaple page. If I go to Web Gallery block and select a gallery, save
   and view its fine. If I then go to another similar post and repeat then come 
   back to this post, then the gallery selection changes to that I slected for the
   second post. Checking the code on this page, the code is correct and not changed.
   Its as if a memory variable in a sub-routine is not being changed.
 *  Plugin Support [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * (@nikitaanisimov)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16303502)
 * Dear [@briansps](https://wordpress.org/support/users/briansps/), thanks for the
   details,
 * When inserting gallery into your other posts were you creating new shortcodes/
   builder widgets for them or copied the one used originally to insert?
 * There is a widespread case when users duplicate the created gallery element/shortcode
   and insert it into other posts/pages – which indeed leads to the case of global
   updates as all galleries are basically using the same shortcode,
 * May I suggest that might be the case with your page? I checked galleries on both
   mentioned pages and both of them are using the same data-shortcode-id=”1171″
 *  Thread Starter [briansps](https://wordpress.org/support/users/briansps/)
 * (@briansps)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16303950)
 * Nikita, Thanks for your response and I was using the first post as a template
   and cloning it as a basis for edit for the next person. I have deleted all the
   existing posts and started again. With 2 produced the problem I had did not recur.
   With possibly 40 posts to produce using a template certainly speeds the process.
   If I produced the necessary posts without gallery inserted and then individually
   edit and insert gallery would that avoid problem of global updates??
 *  Plugin Support [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * (@nikitaanisimov)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16308382)
 * Yes, Brian, that should do the trick, please, try it and let us know if you have
   any further difficulties,
 * Best of luck!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Wrong gallery selected’ is closed to new replies.

 * ![](https://ps.w.org/photo-gallery/assets/icon-256x256.png?rev=2068745)
 * [Photo Gallery by 10Web - Mobile-Friendly Image Gallery](https://wordpress.org/plugins/photo-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-gallery/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/wrong-gallery-selected/#post-16308382)
 * Status: resolved