Back to blog
4 min read Export Guides

Import Category Images and Descriptions from CSV

Shop themes show category images on the shop page and in menus, and category descriptions at the top of each category page. Adding them one category at a time in Products → Categories is slow, and the images often already sit on a supplier’s site or a CDN. With Import Export by RockStarLab PRO, you fill in a spreadsheet with the category names, descriptions and image URLs, and import it.

PRO: importing taxonomy terms is a PRO feature. Use the free plugin 2.2.1 or newer with PRO 2.1.20 or newer: they add the Taxonomy option, so the spreadsheet needs no taxonomy column, and read the parent by its name.

The spreadsheet

Our file updates two existing WooCommerce product categories, Accessories and Clothing, and adds a new one, Belts, under Accessories:

CSV preview with Name, Slug, Description, Image URL and Parent columns for three product categories
Three categories with descriptions, image URLs and a parent.
  • Name and Slug: the slug identifies existing categories. Copy it from Products → Categories.
  • Description: plain text or HTML.
  • Image: the full URL of the image. The plugin downloads it into the Media Library.
  • Parent: the name or slug of the parent category, or empty for a top-level category.

Step 1: Upload and map

Back up the store, then open Import Export → Import, choose Taxonomy Terms, upload the file and click Auto Map. Each column goes to the term field of the same name; the Image column goes to image_url:

Mapped fields Name, Slug, Description, Parent and Image to image_url
Auto Map sends the Image column to image_url.

Step 2: Match by slug and choose the taxonomy

In Import Options, set Check for Existing Items by Field to Slug, keep If Match Found on Update, and choose Product categories (product_cat) in Taxonomy:

Import options: Check for Existing Items by Field Slug and Taxonomy Product categories (product_cat)
Match by slug and choose the taxonomy.

The Taxonomy option is used for rows without a taxonomy column. A file exported by the plugin has a taxonomy column, and its value wins. The same option imports blog categories (category), tags or any custom taxonomy.

Step 3: Import and check

Click Start Import. Our import updated 2 categories and created 1 in 2 seconds. In Products → Categories, each category has its image and description, and Belts sits under Accessories:

Product categories list with images and descriptions for Accessories, Belts under Accessories, and Clothing
The categories with their new images and descriptions.

The products in the categories don’t change: Accessories still has its 5 products.

Tips

  • Image URLs must be public. The site downloads each image. A link that needs a login, or a Google Drive or Dropbox page link, doesn’t give the image file.
  • Same image twice. If you run the import again, an image that is already in the Media Library is reused, not downloaded again.
  • Only descriptions. Leave out the Image column to update only the descriptions. Columns that are not in the file are not changed.
  • Parents first, or in the same file. A parent named in the Parent column can be a category in the store or a row anywhere in the file.
  • All categories with images from another store. To copy categories between two WooCommerce stores, export them with the plugin first: see exporting and importing product categories with images and hierarchy.

The import changes your categories. Back up the store first, or ask your AI agent to start the backup.

With an AI agent

An AI agent connected to the store through the WordPress MCP Adapter (see connecting Claude Code to WordPress) can run the same import:

Without the plugin, WordPress 7.1.5 gives a connected agent only three read-only abilities for site, user and environment information. The exports, imports and syncs in the requests below are abilities of Import Export by RockStarLab.

With Import Export by RockStarLab, import categories.csv into the product categories, matched by slug.

In our run, the agent loaded the file with rsl-ie/upload-from-url and called rsl-ie-pro/import-start with the type taxonomy, the five columns mapped, default_taxonomy set to product_cat and matching by slug. Job 101 created Accessories and Clothing with their images and descriptions, and Belts under Accessories.

FAQ

Which image sizes are created?

The image is added to the Media Library like any upload, so WordPress creates the usual thumbnail sizes and the theme uses the one it needs.

Can I import categories for blog posts too?

Yes. Choose Categories (category) in the Taxonomy option. Blog categories have descriptions, but WordPress itself has no category image; a theme or plugin adds that.

What if a category name exists twice?

Match by slug: slugs are unique within a taxonomy, names are not.

Does it change the products in the categories?

No. Products keep their categories.

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