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
- Default:
- sep
- (optional) Separator.
- Default:
,
- Default:
- add_links
- (optional) Links or plain text.
- Default:
no
- Default:
Example
[wcj_product_tags sep=", " add_links="no" before="</p> <p>Product Tags: " after="</p> <p>"]
Recommended for WooCommerce Product Info module
Accessible through:
- [wcj_product_tags]