---
title: "Fix: Product Variations Not Using the Parent Product Image"
source: "https://docs.nexcess.com/software/kadence/iconic/show-single-variations/product-variations-not-using-parent-product-image/"
description: "Coming soon: Iconic Show Single Variations is becoming part of Kadence Shop Kit. You may see both names used while we update the product, documentation, and cus…"
vertical: "Software"
area: "Show Single Variations"
date: "2022-04-28"
last_modified: "2026-08-12"
---

# Fix: Product Variations Not Using the Parent Product Image

**Coming soon:** Iconic Show Single Variations is becoming part of Kadence Shop Kit. You may see both names used while we update the product, documentation, and customer experience.

Depending on how your theme is retrieving product images, it can show the placeholder image instead of falling back to the parent product image.

**For example, the variation shown below has no image set up but the main parent product has:**

![product variation fix](https://docs.nexcess.com/wp-content/uploads/2026/06/image-1024x552-1.png)

In this scenario, by default, the product variation will use the parent product image. But if you access the shop page and it’s showing a placeholder instead, it’ll be necessary to add a custom code to your theme so it can use the parent product image.

![variation placeholder image](https://docs.nexcess.com/wp-content/uploads/2026/06/image-1-4.png)

**To do this, add the code below to your functions.php file:**

```
add_filter(
	'post_thumbnail_id',
	function( $thumbnail_id, $post ) {

		if ( is_admin() ) {
			return $thumbnail_id;
		}

		if ( ! empty( $thumbnail_id ) ) {
			return $thumbnail_id;
		}

		if ( 'product_variation' !== $post->post_type ) {
			return $thumbnail_id;
		}

		$parent_post_thubmnail_id = get_post_thumbnail_id( $post->post_parent );

		if ( empty( $parent_post_thubmnail_id ) ) {
			return $thumbnail_id;
		}

		return $parent_post_thubmnail_id;
	},
	20,
	2
);
```

This code adds a filter to WordPress to fall back to the parent product image if the variation has no image.

![variation fallback image fix](https://docs.nexcess.com/wp-content/uploads/2026/06/image-2-3.png)
