Hi
According to Shortcode included with Woocommerce:
hidden – Products that are hidden from both shop and search, accessible only by direct URL
.
Good luck
Thank you for your response. The instructions for this command seem to contradict themselves; on one hand, there’s an attribute intended to force the shortcode to display a listing of “hidden” items — and yet, as you pointed out, “hidden” items can only be accessed by their URL.
Maybe this “hidden” attribute doesn’t work as it was intended.
Hi there,
I agree that the documentation is pretty confusing here so I will see if we can update the documentation to clarify.
Many thanks for highlighting this issue.
Hi @mouli — thanks for responding. I ought to note that I was not using the latest version of WooCommerce when I wrote my original post.
As an experiment, I installed the current WooCommerce on another WordPress website I manage, and [products visibility="hidden"]
worked just as I expected it to work.
I created a test product with visibilty set to “hidden” and that product was displayed while a second test product with visibility set to “shop and search” was not.
Hi there,
This is great news!
Nice work in finding the issue 🙂
I will refrain from updating the documentation at this point since it appears that the shortcode is working as expected.
I will close this ticket as solved for now, but if you ever need further assistance, feel free to get back to us.