Products In A Tag

Available Parameters

[box]
title: Title of this shortcode
tag: Product Tag slug name
numbers: Numbers of products to show
columns: Numbers of columns per row
orderby: ID, title, date (default), modified, rand, comment_count, menu_order
order: ASC, DESC (default)
image_width: default = Catalog Images width in WooCommerce Settings
image_height: default = Catalog Images height in WooCommerce Settings
image_crop: yes / no, default = Catalog Images hard crop in WooCommerce Settings
product_saleflash: yes (default) / no : Show product sale flash
product_title: yes (default) / no : Show product title
product_price: yes (default) / no : Show product price
product_button: yes / no (default) : Show add to cart button
[/box]

Example 1

return three products from women product tag (with “women” slug)

[prima_code][prima_products_in_tag title=”Products For Women” tag=”women” numbers=”3″ columns=”3″]
[/prima_code]

[prima_products_in_tag title=”Products For Women” tag=”women” numbers=”3″ columns=”3″]

Example 2

return three products from men product tag (with “men” slug) in alphabetic order

[prima_code][prima_products_in_tag title=”Products For Men” tag=”men” numbers=”3″ columns=”3″ orderby=”title” order=”asc”]
[/prima_code]

[prima_products_in_tag title=”Products For Men” tag=”men” numbers=”3″ columns=”3″ orderby=”title” order=”asc”]

Example 3

return three products from shoes product tag (with “shoes” slug) in random order

[prima_code][prima_products_in_tag title=”Shoes Collection” tag=”shoes” numbers=”3″ columns=”3″ orderby=”rand”]
[/prima_code]

[prima_products_in_tag title=”Shoes Collection” tag=”shoes” numbers=”3″ columns=”3″ orderby=”rand”]

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

購物車