• Resolved noticedw

    (@noticedw)


    Below the contact form at bottom of page, I inserted gutenberg shortcode block and pasted this shortcode: [products limit=”3″ column=”3″ visibility=”featured” ] into it.

    2 products are published yet both not display. Is this correct syntax for displaying products?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Fitri Sinta

    (@supportfitri)

    Hi @noticedw,

    Thank you for reaching out!

    The syntax of the shortcode you’ve used seems mostly correct, but there’s a small issue with the quotation marks around the attributes. It appears that you’re using curly quotes (“ ”) instead of straight quotes (” “). WordPress requires straight quotes for shortcodes to work properly.

    Please try updating the shortcode to the following:

    [products limit="3" columns="3" visibility="featured"]

    Additionally, make sure that the visibility setting for your products is set to Featured and that they’re published and visible on the front-end.

    If the issue persists, it could be related to how the products are configured, or there might be a conflict with your theme or another plugin. In that case, I’d recommend contacting WooCommerce since this shortcode is from WooCommerce itself.

    Let me know how it goes!

    Thread Starter noticedw

    (@noticedw)

    Hi Fitri,

    It seems visibility=”featured” is the issue. When I do quick edits of my test products, there is no featured field to click on to make them featured thus no products are displayed for [products limit="3" columns="3" visibility="featured"] I’ll be asking Woocommerce where to set a given product has featured or not?

    Cheers, Phil

    Plugin Support Fitri Sinta

    (@supportfitri)

    HI @noticedw,

    Thank you for the update! It sounds like the issue is related to the ‘featured’ visibility setting. In WooCommerce, you can mark a product as featured either from the product edit page or the product listing page as shown below:

    If you want to apply this feature for vendor products, please go to WC Vendors > Settings > Capabilities > Products and enable the “Featured Product” option.

    This setting controls whether vendors can use featured products on the WordPress admin product edit screen. However, this feature isn’t available on the Vendor Dashboard, so it must be managed from the admin backend. You can set a product as featured either from the product edit page or the product listing page.

    You should then be able to use the visibility=”featured” shortcode properly. If you need further assistance or clarification, feel free to reach out. I’m happy to help!

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.