Custom Fields on Products

WooCommerce offers the capability to enhance your product listings with custom fields, a feature that allows you to display additional product details to customers.

Custom fields are additional metadata of your products, which can be utilized in various ways within your theme or site to display extra information, tailor the shopping experience, or provide specific product details that aren’t covered by the default product fields.

This flexibility allows you to extend the functionality of your online store per your goals. This guide will walk you through the process of adding custom fields to WooCommerce products directly through the WordPress admin and displaying them on your site.

Attributes vs Custom Fields

↑ Back to top

Before we learn more about custom fields, it’s important to understand the difference between custom fields and product attributes. The difference lies primarily in their application and functionality:

  • Product Attributes serve as foundational elements for categorizing a broad range of products. They function similarly to taxonomies, enabling customers to filter and group products based on these attributes. This feature is crucial for creating meaningful relations among products, helping customers navigate and discover products through attributes like color, size, or material.
  • Custom Fields, in contrast, are tailored to individual products, providing specific information or options for that single item. Unlike attributes that categorize products into broader groups, custom fields offer unique details or personalization choices for each product.

In essence, while attributes work to organize products into categories or groups based on shared characteristics, custom fields add depth to a product’s individual listing by offering additional information that is specific to that particular item.

Enable Custom Fields for Products

↑ Back to top

To enable Custom Fields for products, please follow the below steps:

  1. Go to WP-admin > Products
  2. Choose to add a new product using the “Add New” button or “Edit” an existing product
  3. On the product edit page, click the “Screen Options” at the top right corner of the screen.
  4. In the dropdown, find and check the “Custom Fields” option to enable it for the products
Enable ‘Custom Fields’ from ‘Screen Options’

Add Custom Fields to a Product

↑ Back to top

After enabling the custom fields for your products, you can now add custom data to your products:

  1. On the same product edit page, scroll down until you find the “Custom Fields” section at the bottom
  2. To add a new custom field, click on the “Add Custom Field” button to create a new field
  3. Name your custom field in the “Name” input box. This name will be used to reference the field programmatically in your theme or site
  4. Enter the value for the custom field in the “Value” input box. This could be any piece of information relevant to the product, such as additional specifications, unique identifiers, or custom notes
  5. Once you’ve added your custom fields and filled out their corresponding values, make sure to save or update the product
Adding Custom Field

Displaying Custom Fields in Your Theme or Site

↑ Back to top

To display the Custom Fields for each product, you have to edit your theme’s files. Learn more about how to do that in the WooCommerce Developer Documentation.

Questions and support

↑ Back to top

Do you still have questions and need assistance? 

This documentation is about the free, core WooCommerce plugin, for which support is provided in our community forums on WordPress.org. By searching this forum, you’ll often find that your question has been asked and answered before.

If you haven’t created a WordPress.org account to use the forums, here’s how.

  • If you’re looking to extend the core functionality shown here, we recommend reviewing available extensions in the WooCommerce Marketplace.
  • Need ongoing advanced support or a customization built for WooCommerce? Hire a Woo Agency Partner.
  • Are you a developer building your own WooCommerce integration or extension? Check our Developer Resources.

If you weren’t able to find the information you need, please use the feedback thumbs below to let us know.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.