Available Parameters

title: Title of this shortcode
attribute: Product attribute 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

Example 1

return four products with StoreForest brand attribute (with “storeforest” slug)

[prima_products_in_attribute title="StoreForest Brand" attribute="brand" brand="storeforest"]

StoreForest Brand

No products found which match your selection.

Example 2

return four products with Black colour attribute (with “black” slug) in alphabetic order

[prima_products_in_attribute title="Black Colour" attribute="colour" colour="black" orderby="title" order="asc"]

Black Colour

No products found which match your selection.

Example 3

return four products with Medium size attribute (with “medium” slug) in random order

[prima_products_in_attribute title="Medium Size" attribute="size" size="medium" orderby="rand"]

Medium Size

Facebook Twitter Pinterest
I am responsive!