fbpx

Description

[wcj_product_image] shortcode displays WooCommerce product image.

Args

before
(optional) Text to place before the content. If content is empty this argument is ignored.
Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.
Default: None
visibility
(optional) Make shortcode results visible to everyone (`all`), or to admin only (`admin`).
Default: `all`
product_id
(optional) The integer ID for a product.
Default: The current product ID, if exists
image_size
(optional) Possible values are `shop_thumbnail`, `shop_catalog` or `shop_single`.
Default: `shop_thumbnail`

Examples

This will display main product page image.

[wcj_product_image image_size="shop_single"]
Accessible through:
  • [wcj_product_image]
Tested on WooCommerce 5.6.0 and WordPress 5.8.1