WooCommerce - excelling eCommerce
Shortcode - don't display out-of-stock (1 post)

  1. flywebguy
    Posted 2 years ago #

    I currently have a page that brings in the products of a certain category via a shortcode:
    [product_category category="lathes" per_page="12" columns="3" orderby="date" order="desc"]

    I want that shortcode to also filter that category to only display instock items on the page. How do I do that?

    I know how to hide out-of-stock items via the inventory settings page, but that doesn't work because I still need the out-of-stock items displayed elsewhere.

    Thanks in advance!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.