Title: Woocommerce shortcodes
Last modified: June 17, 2019

---

# Woocommerce shortcodes

 *  Resolved [titus101](https://wordpress.org/support/users/titus101/)
 * (@titus101)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/)
 * I created an on sale product tab and added this woocommerce shortcode; “[1products
   limit=”4″ columns=”4″ orderby=”popularity” class=”quick-sale” on_sale=”true” ]”
   and it is not working but “best selling” and “newest products are working perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Kenin](https://wordpress.org/support/users/kbassart/)
 * (@kbassart)
 * Automattic Happiness Engineer
 * [6 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/#post-11645526)
 * Hi there,
 * The shortcode you’ve entered has a number 1 where it shouldn’t. The shortcode
   should be entered as so: [products limit=”4″ columns=”4″ orderby=”popularity”
   class=”quick-sale” on_sale=”true” ]
 * If changing that doesn’t work, please link to the page so we can take a look.
 *  Thread Starter [titus101](https://wordpress.org/support/users/titus101/)
 * (@titus101)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/#post-11652714)
 * The “1” on the woocommerce shortcode was an error I made as I was typing the 
   message. I have tried it again but it still doesn’t work. Tried to deactivate
   some plugins, still no way. I also observed that “on sale” badge on the product
   image is not displaying. I will appreciate any help, please. Here is the site
   url: [https://zoomlens.store/](https://zoomlens.store/)
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [6 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/#post-11710933)
 * Hi [@titus101](https://wordpress.org/support/users/titus101/),
 * You might be having an issue with the quotation marks you’re using. Smart quotes
   will mess up what you’re trying to do.
 * If you compare the quotation marks below to the one in your post, you’ll see 
   what I’m talking about:
 * `[products limit="4" columns="4" orderby="popularity" class="quick-sale" on_sale
   ="true"]`
 * I used the above shortcode, feel free to copy it, in a page on my site and it
   worked exactly as it should.
 * Here’s a screenshot: [https://cld.wthms.co/dL242B](https://cld.wthms.co/dL242B)
 *  [Hari Shanker R](https://wordpress.org/support/users/harishanker/)
 * (@harishanker)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/#post-11731126)
 * Hi [@titus101](https://wordpress.org/support/users/titus101/)
 * I hope the suggestions we passed along to you in the previous reply guided you
   in the right direction. The shortcode provided by [@luminus](https://wordpress.org/support/users/luminus/)
   should help you meet your needs.
 * We haven’t heard from you in a while, so we’re marking this thread as `Resolved`
   for now.
 * Please feel free to reply to us in this thread, should the problem persist. We
   are happy to look into this and guide you further.
 * All the best!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Woocommerce shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Hari Shanker R](https://wordpress.org/support/users/harishanker/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-shortcodes-5/#post-11731126)
 * Status: resolved