Available Parameters

title: Title of this shortcode
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 latest products

[prima_products title="Latest Products"]

[prima_products title=”Latest Products”]

Example 2

return six latest products in 3 columns ( two rows )

[prima_products title="Latest Products" numbers="6" columns="3"]

[prima_products title=”Latest Products” numbers=”6″ columns=”3″]

Example 3

return four random products

[prima_products title="Random Products" numbers="4" columns="4" orderby="rand"]

[prima_products title=”Random Products” numbers=”4″ columns=”4″ orderby=”rand”]

Example 4

return four products with images only

[prima_products title="Nice Products" numbers="4" columns="4" product_saleflash="no" product_title="no" product_price="no"]

[prima_products title=”Nice Products” numbers=”4″ columns=”4″ product_saleflash=”no” product_title=”no” product_price=”no”]

Example 5

return four products with “add to cart” button

[prima_products title="Buy Now" numbers="4" columns="4" product_button="yes"]

[prima_products title=”Buy Now” numbers=”4″ columns=”4″ product_button=”yes”]

Example 6

return four latest products with custom image size (portrait style)

[prima_products title="Latest Products" image_width="150" image_height="225"]

[prima_products title=”Latest Products” image_width=”150″ image_height=”225″]