Support » Plugin: WooCommerce » Products shortcode and visibility=”hidden”

  • Resolved mbrailer

    (@mbrailer)


    I have a published product with a catalog visibility setting of “hidden”. When I insert the following shortcode in a page, the hidden item is not displayed.

    [products visibility=”hidden”]

    Am I using the shortcode correctly? If I am, why isn’t the hidden item appearing in the output?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    According to Shortcode included with Woocommerce:

    hidden – Products that are hidden from both shop and search, accessible only by direct URL.

    Good luck

    Thread Starter mbrailer

    (@mbrailer)

    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.

    Plugin Support mouli a11n

    (@mouli)

    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.

    Thread Starter mbrailer

    (@mbrailer)

    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.

    Plugin Support mouli a11n

    (@mouli)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Products shortcode and visibility=”hidden”’ is closed to new replies.