Best Jquery ,javascript, HTML5 CSS3 tutorial with jquery examples, php script , demos for beginners, web designers and web developers.

Jquery

Jquery Training

Jquery training blog

WooCommerce shortcode list in wordPress

To add short code in page we have to create page in wordPress. To create a page in wordPress go to wordPress admin. In the laft menu you can see the pages menu, click on add new. Type the suitable title for the page. To add shortcode to the page insert the shortcode in the Continue Reading


To add short code in page we have to create page in wordPress.

To create a page in wordPress go to wordPress admin. In the laft menu you can see the pages menu, click on add new.
Type the suitable title for the page. To add shortcode to the page insert the shortcode in the page description box.
Now click on the permalink below the title it will view the page and function of the shortcode will work.

Please refer the image below

add WooCommerce shortcode to wordpress page

if you want to echo your shortcode to the some portion of your page using php use the following php code

<?php echo do_shortcode( '[shortcode_name]' );?>

Essential WooCommerce shortcode list

 

 User account page will seen by this shoetcode [woocommerce_my_account]
 To show the cart page use this shortcode : [woocommerce_cart]
 To shows the checkout page use this shortcode :[woocommerce_checkout]
 Shows the order page use this shortcode : [woocommerce_order_tracking]
If you want to show recent products in your home page with the argument  use the following WooCommerce shortcode :
[recent_products per_page="12" columns="4" orderby="date" order="ASC"] 

If you want to show featured products in your home page with the arguments  use the following WooCommerce shortcode :
[featured_products per_page="12" columns="4" orderby="date" order="ASC"] 

If you want to show related products in your product page with the arguments  use the following WooCommerce shortcode :
[related_products per_page="10" "orderby" => 'title']

To show product by product ID 
[product id="55"]

To show product by product SKU 
[product sku="jquerytraining"]

Show multiple product by product ID 
[products ids="109,106,55"]

Show multiple product by product SKU 
[products ids="htm,css"]

Show product by product category 
[product_categories number="null" parent="0" orderby="title"]
[product_categories number="null" ids="category ids" orderby="title"]

user parent 0 to show top categories and if you want to show by category id use category ids comma separated
like ids="4,9,14"

To show product page by product ID 
[product_page id="55"]

To show product page by product SKU 
[product_page id="jquerytraining"]

Please follow and like us:






About the author

Joydeb Choudhury holds a Master's degree in Computer Application from I.G.N.O.U. After working as a web developer in various companies he has started bloging in 2016.

Recent Posts of blog

Downalod Free Php Scripts