---
title: How to use WooCommerce product attributes (including personalized ones) in your metadata
url: "https://www.seopress.org/support/guides/woocommerce-product-attributes-in-metadata/"
lang: en-US
updated: 2023-07-18
---

# How to use WooCommerce product attributes (including personalized ones) in your metadata

## Case 1: product attributes

Product attributes are custom taxonomies. Each time you create a product attribute from your **WP Admin**, **Products**, **Attributes**, it will create a new taxonomy like this:

“pa\_my\_product\_attribute”

“**pa**” means product attributes.

To add product attributes to your metadata (eg: title), enter this dynamic variable like this:

`%%_ct_pa_color%%`

To find your product attribute name, go to **Products**, **Attributes** and look at the **slug** column.

[![Woocommerce Product Attributes](https://www.seopress.org/wp-content/uploads/2020/07/woocommerce-product-attributes-seopress.jpg)](https://www.seopress.org/wp-content/uploads/2020/07/woocommerce-product-attributes-seopress.jpg)

*WooCommerce Product Attributes*

## Case 2: custom product attributes

Custom product attributes are saved as a post meta called “\_product\_attributes”.

It’s an array containing the names (keys) and values of your product attributes.

Use this dynamic variable in your metadata:

`%%wc_product_attributes%%`

Then add this filter to your functions.php file of your theme / child theme:
