Back to blog
4 min read Content Sync

WooCommerce Product Gallery Images in the Right Order After a Sync

The order of a WooCommerce product gallery is a merchandising decision: the lifestyle photo first, the close-up second, the packaging last. WooCommerce stores the gallery as a list of attachment IDs in that order. When a product is copied to another store, the IDs have to become the other store’s IDs and the order has to stay; when you later reorder or remove images on one store, the other has to follow. With Import Export by RockStarLab PRO, a product push does both.

PRO: WooCommerce product sync is a PRO feature and needs PRO with a license on both sites. The test below used Import Export by RockStarLab 2.2.13 and PRO 2.1.31.

Short Answer

Push the product from Products with Sync Content. The main image and every gallery image go with it, and the gallery on the other store has the same images in the same order. Images that store already has, with the same file, are used instead of new copies. After you reorder the gallery or remove an image on the source store, the next push changes the gallery on the other store the same way.

First push: four images in order

On the source store, Nordlicht House Blend 250 g had a main image and a gallery of four images. We pushed it from Products with Sync Content > Push to Site; the product already existed on the other store, so it was updated:

Map Posts for Sync dialog with Nordlicht House Blend 250 g set to update the existing product on the other store
The product already exists on the other store and is updated.

On the other store, the product gallery showed the same four images in the same order. They pointed to that store’s own attachments; it already had these files from an earlier import, in another uploads folder, so no copies were added:

Product gallery on the source store and on the other store side by side, with the same four images in the same order
The same four images in the same order on both stores.

Reorder and remove, then push again

We dragged the last image to the front, swapped the next two and removed one, leaving three. After the next push, the gallery on the other store had the same three images in the new order, and the removed image was no longer in it:

Reordered gallery with three images on the source store and the same three images in the same new order on the other store
After a reorder and a removal, the next push changes the other store’s gallery the same way.
Change on the source product Gallery on the other store after the push
New product with a gallery Same images, same order
Images already on the other store Existing files used, no copies
Images reordered New order
Image removed from the gallery Removed from the gallery (the file stays in the Media Library)
Main image changed Main image changed

Things to know

  • The push sends the gallery as it is on the source store. A gallery edited only on the other store is replaced on the next push.
  • Removing an image from the gallery doesn’t delete the file on either store.
  • Images of variations travel with the variable product; see syncing variable products.
  • To check that the other store didn’t get duplicates, look for the file names in Media > Library there, or find duplicate images with an export.

As before any push, back up the store you push to, or ask your AI agent to start the backup.

With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see connecting Claude Code to WordPress). With it, one request is enough:

With Import Export by RockStarLab, on the retail store, list the Media Library files named article-image and tell me if any name appears twice.

In our check, the agent called rsl-ie/sync-media-browse for the connected store with the search “article-image”. It returned ten files, article-image-1 to article-image-10, each once, including the four gallery images, with their attachment IDs on that store.

FAQ

Yes. The gallery on the other store has the same images in the same order.

No. Images sent earlier, or the same files already on the other store, are used again.

Yes, from the gallery. The file stays in both Media Libraries.

Is the main product image synced too?

Yes. The main image is set on the other store the same way as the gallery.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE