Back to blog
6 min read Content Sync

Sync WooCommerce Product Categories with Images, Display Type and Order

The roastery’s staging store got a new branch of product categories: Roastery Coffee with Espresso Beans, Decaf and Filter Beans under it. Each category has a picture for the shop page, a short description, a display type (subcategories only, products only, or both) and a place in the drag-and-drop order, with Espresso first because it sells best. Recreating that on the live store by hand means four images to upload again, four dropdowns and dragging rows into the same order. We pushed the branch from staging to live in one step and then checked which of these settings arrived.

PRO: syncing selected terms between sites is part of PRO. Tested with Import Export by RockStarLab 2.2.45 and PRO 2.1.41, WooCommerce 11.2.1, WordPress 7.1.5.

Short Answer

Connect the two stores in Content Sync. On the source store open Products > Categories, tick the categories, click Sync, choose the other store and click Push selected terms. Name, slug, description, parent, thumbnail, display type and order arrive on the other store. Run it again after a change: categories with the same slug are updated, not duplicated.

What WooCommerce Stores for a Product Category

A product category is a WordPress term with a few fields that WooCommerce adds on top. Our test checked each of them on the live store after the push:

Field Where you set it After the push
Name, slug, description Category edit screen same as staging
Parent category Category edit screen Roastery Coffee, matched by slug
Thumbnail Category edit screen image copied into the live Media Library and attached
Display type Category edit screen Subcategories, Products, Both or Default, as on staging
Order Dragging rows in the category list same order: Espresso Beans, Decaf, Filter Beans, Roastery Coffee

The thumbnail is the part that breaks when categories are copied as plain text. WooCommerce saves it as an attachment ID, and ID 7871 on staging is some other file on the live store, or nothing. The sync sends the image itself, adds it to the live Media Library and saves the new ID.

Step 1: Select the Categories

On the staging store open Products > Categories. We searched for “roastery” to show only the new branch and ticked all four rows. Select the parent together with its children, so that the other store gets the whole branch in one push.

Products > Categories on the staging store: Decaf, Espresso Beans, Filter Beans and Roastery Coffee with thumbnails and descriptions, all four ticked, Sync button next to Bulk actions
The new branch on staging, ticked for the push.

Step 2: Push Them

Click Sync next to Bulk actions. In the dialog choose the live store under Select Site and click Push selected terms. The first push created all four categories:

Sync Terms dialog: Selected terms: 4, site QA aie6, Push selected terms and Pull / update selected terms buttons, result Terms synced. Created: 4, Updated: 0
The first push created all four categories.

Pull / update selected terms works in the other direction: it reads the ticked categories from the other store and updates them here.

Step 3: Check the Live Store

The category list on the live store shows the same pictures, descriptions and order as staging:

Product categories on the live store after the push: Espresso Beans, Decaf, Filter Beans and Roastery Coffee in the same order with the same thumbnails and descriptions
Same pictures, descriptions and order on the live store.

The edit screen of Espresso Beans has the parent, the display type and the thumbnail filled in:

Edit screen of Espresso Beans on the live store: Parent category Roastery Coffee, Display type Both, Thumbnail with the Espresso picture
Parent, display type and thumbnail arrived.

Products bring their categories with them when you sync or import the products, and land in the categories you pushed here.

Updating Categories Later

After the first push we changed the description of Filter Beans on staging and, to test the matching, renamed the same category on the live store to “Filter Coffee”. The second push reported Created: 0, Updated: 4. Filter Beans on the live store got its staging name back and the new description, and there was still only one category with that slug.

Categories are matched by slug. A category whose slug differs between the stores is treated as a new one, so fix slugs before the first push if the live store already has a similar branch.

When we replaced the Espresso Beans picture on staging and pushed again, the live category showed the new picture. The previous image stayed in the live Media Library, so any page that still shows it keeps working.

Pushing a Product Into a New Category

Since version 2.2.59 you do not always have to sync the categories first. When you push a product whose category the live store does not have, the live store creates that category with its image, display type and order from staging. Categories the live store already has keep their own settings; sync those as shown above.

With WP-CLI or an AI Agent

The same push runs from WP-CLI on the source store, with the term IDs of the categories and the ID of the connected store:

wp rsl-ie ability rsl-ie-pro/sync-terms-push '{"taxonomy":"product_cat","site_id":1,"term_ids":[2857,2858]}' --user=admin

On our test stores with Import Export by RockStarLab 2.2.64 and PRO 2.1.57, this pushed a parent category and its child in one call: created 2, failed 0, with the map of term IDs on the other store. The child arrived under its parent with its description, display type and thumbnail, copied into the other store’s Media Library.

An AI agent connected through the WordPress MCP Adapter makes the same call from a request. WordPress itself gives the agent only read-only abilities for site, user and environment information; the term sync comes from the plugin:

With Import Export by RockStarLab, push the product category Roastery Gear and all its subcategories with their images to the live store.

Without a Connection

For a store you cannot connect, export the categories as Taxonomy Terms with the product category taxonomy and import the file on the other store. Import Category Images and Descriptions from CSV shows the columns for images and parents.

FAQ

Can I copy WooCommerce product categories with their images to another store?

Yes. With Import Export by RockStarLab PRO, tick the categories in Products > Categories, click Sync and push them to a connected store. The thumbnails are copied into the other store’s Media Library.

Is the category order kept?

Yes. The order you set by dragging rows in the category list arrives with the categories, and so does the display type.

Does a second push create duplicate categories?

No. Categories are matched by slug and updated. Our second push reported Created: 0, Updated: 4.

What happens to the old picture when I change it?

The new picture is copied and attached to the category, and the old file stays in the Media Library, so pages that still use it keep working.

Get the free plugin on WordPress.org. Term sync between sites is part of PRO.

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