---
title: "WooCommerce Product Gallery Images in the Right Order After a Sync"
url: "https://wpimportexport.com/sync-woocommerce-product-gallery-images-between-stores/"
description: "Copy a WooCommerce product to another store with its gallery images in the same order, without duplicates, and keep later reorders and removals in sync."
type: post
published: 2026-11-27T17:00:00+00:00
modified: 2026-11-25T18:37:20+00:00
categories: ["Content Sync", "Tutorials", "WooCommerce"]
tags: ["Content Sync", "WooCommerce", "WooCommerce data"]
docs_topics: ["Media workflows", "WooCommerce"]
---

# 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](https://wpimportexport.com/wp-content/uploads/2026/11/gallery-map.webp)

_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](https://wpimportexport.com/wp-content/uploads/2026/11/gallery-first-push.webp)

_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](https://wpimportexport.com/wp-content/uploads/2026/11/gallery-reordered.webp)

_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](https://wpimportexport.com/sync-woocommerce-variable-products-between-stores/).
- To check that the other store didn’t get duplicates, look for the file names in Media > Library there, or [find duplicate images](https://wpimportexport.com/find-duplicate-images-wordpress-media-library/) with an export.

As before any push, [back up the store you push to](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), 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](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)). 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

### Does the product gallery keep its order when synced to another store?

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

### Are gallery images duplicated on every push?

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

### If I remove an image from the gallery, is it removed on the other store?

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.

## Related Guides

- [How to Sync WooCommerce Products Between Two WordPress Sites](https://wpimportexport.com/how-to-sync-woocommerce-products-between-two-wordpress-sites/)
- [How to Import WooCommerce Product Images from URLs](https://wpimportexport.com/import-woocommerce-product-images-from-urls/)
- [Syncing Featured Images and Media Between Sites: What Gets Copied and What Does Not](https://wpimportexport.com/sync-featured-images-media-between-wordpress-sites/)
- [Grouped Products, Upsells and Cross-Sells After Syncing WooCommerce Products](https://wpimportexport.com/sync-woocommerce-grouped-products-upsells-cross-sells/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
