Is there a shortcode for product description in WooCommerce

Is there a shortcode for product description in WooCommerce

  1. Blog
  2. 15 November 2026
  3. 3 min read

Stefan Bogdanescu

Founder & Senior Architect

Is there a shortcode for product description in WooCommerce

Yes, there is a dedicated shortcode to retrieve the product description in WooCommerce, and it is built directly into the core system without requiring any plugins or custom code. The specific syntax is [product_description]. Unlike other shortcodes that often require arguments like limit or id, this one defaults to showing the full description content stored in the description meta field of the product.

If you are currently using a custom field to display data, switching to the native [product_description] shortcode is generally the preferred approach for standard e-commerce sites. This ensures that your output remains consistent with how other elements on the page are rendered and leverages the existing data structure rather than creating redundancy.

Implementation Details and Arguments

While the basic usage is straightforward, understanding the available arguments allows for more granular control over what gets displayed. The shortcode accepts three primary parameters:

  • limit: Limits the number of characters to display.
  • more_text: Specifies the text to show when content exceeds the character limit.
  • more_link: Defines the URL appended to the "Read More" link (defaulting to the product page).

Here is how you might implement a truncated description with a custom "Read More" label on a template file:

<?php echo do_shortcode('[product_description limit="150" more_text="..." more_link="#" ]'); ?>

In this example, we are restricting the output to 150 characters. The more_link attribute is set to #, which creates a non-functional link placeholder; in a real-world scenario, you would typically pass the current product's permalink or leave it empty to let WooCommerce handle the default behavior.

Shortcode vs. Template Hooks

It is crucial to distinguish between using shortcodes and template hooks when building themes or plugins. The [product_description] shortcode is designed for use in post content areas or widgets where you want a simple drop-in replacement. However, if you are developing a custom theme or modifying the product single page (single-product.php), you should avoid relying solely on shortcodes within PHP logic blocks.

Instead, WooCommerce provides specific template functions that are more efficient and semantically correct for programmatic rendering. The function get_the_product() returns the product object, which exposes methods like get_description().

Using these native functions allows you to bypass shortcode parsing overhead entirely. For instance:

$product = wc_get_product(get_the_ID());
echo $product->get_description();

This approach is superior for performance-critical sections of your site because it does not invoke the WordPress shortcodes parser, which adds a layer of regex processing and hook execution. If you are building a headless frontend or an API response, returning the description via get_description() is the standard practice.

Data Structure Considerations

The text field under the title in WooCommerce is technically stored as a meta field named description. This distinguishes it from the short_description, which is also available via [product_short_description] or $product->get_short_description().

When migrating away from custom fields, ensure that your legacy data does not conflict with the native description. If you have been populating a custom column in your database to store descriptions, you must verify whether that data should be synced into the wp_postmeta table under the description key or if you plan to keep them separate. Mixing these sources can lead to duplication issues where the front-end displays the wrong text depending on how the theme is configured.

Conclusion

For most use cases, [product_description] is the correct tool for displaying the main product text in content areas. For developers building themes or custom loops, get_the_product()->get_description() offers a cleaner, faster alternative that aligns with WooCommerce's internal architecture.

Our network