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!
- The topic ‘Shortcode – don't display out-of-stock’ is closed to new replies.