WooCommerce Product Shortcodes are a great way to add products to your WooCommerce store. There are two shortcodes that you can use to add products:
1. The WooCommerce Product Shortcode only works with simple products, not variable products.
2. You need to specify the product ID in the shortcode, not the SKU.
3. The shortcode will not work if the product is set to “Private” in the WooCommerce settings.
4. If you want to display more than one product, you need to use the [products] shortcode instead. This shortcode has many more options and can be used with variable products as well.
[product id=”123″] – This shortcode will add the product with an ID of 123 to your store.
[product sku=”SKU123″] – This shortcode will add the product with a SKU of SKU123 to your store.
To use these shortcodes, simply copy and paste them into the text editor of your choice and replace the 123 with the relevant product ID or SKU. Once you’ve done that, hit publish and your products will be added to your WooCommerce store!
How Do I Get the WooCommerce Product Shortcode?
The easiest way to get the WooCommerce Product Shortcode is to go to the WooCommerce website and search for “WooCommerce Product Shortcodes”. This will bring up a page with all of the available shortcodes and their corresponding product IDs or SKUs.
Simply copy and paste the desired shortcode into the text editor of your choice and replace the 123 with the relevant product ID or SKU. Once you’ve done that, hit publish and your products will be added to your WooCommerce store!