Blog of Arifa Sultana Rumpa

Share your ideas which promote your virtual identity

Read & Comment
woocommerce-shortcodes

List of woocommerce shortcodes for display product and pages

Several shortcodes are avaliable for woocommerce can be use and insert in Post and Pages. I will show you the list of some woocommerce shortcode to implement in various ways in your wordpress template.

1. Recent products woocommerce shortcodes:

Display recent products, very useful in homepage and your custom page.
in code below ‘per_page’ shortcode used to dispaly the numbers of products and the columns attribute tell the numbers of columns.

Args:
array(
‘per_page’ => ‘9’,
‘columns’ => ‘3’,
‘orderby’ => ‘date’,
‘order’ => ‘desc’
)

Shortcode:
[recent_products per_page="9" columns="3"]

2. Featured Products woocommerce shortcodes
Display feature products, very useful work same as recent products.
It show only those product which set to be ‘featured’.

Args:
array(
‘per_page’ => ‘9’,
‘columns’ => ‘3’,
‘orderby’ => ‘date’,
‘order’ => ‘desc’
)

Shortcode:
[featured_products per_page="9" columns="3"]

3. Multiple Product woocommerce shortcodes
Display multiple products by using its ID or SKU codes.

Args:
array(
‘columns’ => ‘3’,
‘orderby’ => ‘title’,
‘order’ => ‘desc’
)

Shortcode:
[products ids="1, 2, 3, 4, 5"]
[products skus="cars, bikes, trucks" orderby="date" order="asc"]

Info: you can use “asc” or “desc” to display order.

4. Product Categories woocommerce shortcodes
Display product categories loop in page.

Args:
array(
‘number’ => ‘null’,
‘orderby’ => ‘name’,
‘order’ => ‘DESC’,
‘columns’ => ‘3’,
‘hide_empty’ => ‘1’,
‘parent’ => ”,
‘ids’ => ”
)

Info:
‘number’ field is used to display the number of products
‘ids’ field is to tell the shortcode which categories to display.

Shortcode:
[product_categories number="9" parent="0"]

parent=”0″ is used to show the top level category.

5. Sale Products woocommerce shortcodes
Display product which are on sale.

Args:
array(
‘per_page’ => ‘9’,
‘columns’ => ‘3’,
‘orderby’ => ‘title’,
‘order’ => ‘asc’
)

Shortcode:
[sale_products per_page="9"]

6. Best Selling Products woocommerce shortcodes
Display Best Selling products.

Shortcode:
[best_selling_products per_page="9"]

7. Top Rated Products woocommerce shortcodes
Display top rated products on sale.

Shortcode:
[top_rated_products per_page="9"]

8. Related Products woocommerce shortcodes
Display related products

Shortcode:
[related_products per_page="9"]

9. Product category woocommerce shortcodes
Display multiple products by using category ‘slug’

find at: WooCommerce > Products > Categories to find slug.

Args:
array(
‘per_page’ => ‘9’,
‘columns’ => ‘3’,
‘orderby’ => ‘title’,
‘order’ => ‘asc’,
‘category’ => ”
)

Shortcode:
[product_category category="cars"]

Share This:
FacebookTwitterGoogle+PinterestLinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Mr WordPress said:

"Hi, this is a comment. To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them."

richards said:

"hellonice jimrmz :-) "

Bella said:

"Get get targeted paid traffic sent to your Keep your WordPress site and plugins up-to-date - rumpa 07 cse - Full Time Web Developer | rumpa 07 cse - Full Time Web Developer website for 7 days free here: http://janluetzler.de/5ier"

arifa said:

"Please share your comments."