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 4.5.2 and WordPress 5.5.1
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.