Attribute value shortcode

This feature is a part of Product Attributes PRO. Click here to see all Product Attributes PRO features.

You can display a selected attribute value with the attribute_value shortcode.

The shortcode has three available parameters:

  1. label – the attribute label
  2. num – the number of the product attribute
  3. product_id – the product id – it takes the current product ID if not provided

An example to display the attribute value for the attribute named Color:

[attribute_value label=Color]

An example to display the attribute value for the second attribute in the table:

[attribute_value num=2]

An example to display the attribute value for the attribute named Size for a specific product:

[attribute_value label=Size product_id=1232]