[wcj_product_tags]

Display WooCommerce product tags

Description

[wcj_product_tags] shortcode displays WooCommerce product tags. Tags can be displayed as links, or as plain text. There is also an option to set custom separator.

Args

product_id
(optional) The integer ID for an product.

Default: The current product ID, if exists
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
sep
(optional) Separator.

Default:
add_links
(optional) Links or plain text.

Default: no

Example

[wcj_product_tags sep=", " add_links="no" before="<p>Product Tags: " after="</p>"]
Recommended for WooCommerce Product Info module
Accessible through:
  • [wcj_product_tags]
Tested on WooCommerce 2.6.14 and WordPress 4.7.3
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

Comments

1 Comment

  1. Kevin March 6, 2017 at 10:05 pm #

    Hi Tom,

    Can you add a font awesome icon example fa fa-map-marker before the tags?

    Would font awesome work when placed in the shortcodes

    Reply