Title: Sale items shortcode returning items when empty
Last modified: August 21, 2016

---

# Sale items shortcode returning items when empty

 *  [et-alia](https://wordpress.org/support/users/et-alia/)
 * (@et-alia)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sale-items-shortcode-returning-items-when-empty/)
 * Hello!
 * I am using WordPress 3.6 and WooCommerce 2.0.12.
 * When adding the [sale_products] shortcode to a Page:
 * If there are currently no items on sale, the shortcode returns the top 18 products,
   alphabetically. I know that I can specify how many per page etc, I am just wondering
   how to stop the shortcode from returning anything at all, until of course, there
   are actually items on sale to be displayed.
 * Thank you!
 * [http://wordpress.org/plugins/woocommerce/](http://wordpress.org/plugins/woocommerce/)

The topic ‘Sale items shortcode returning items when empty’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [et-alia](https://wordpress.org/support/users/et-alia/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/sale-items-shortcode-returning-items-when-empty/)
 * Status: not resolved