• Resolved ladysyren

    (@ladysyren)


    Would someone kindly type out the short code for showing the products in a specific category?

    I created a top-level category for a new page I created separate from the default WooCommerce shop page. This new page is for products I sell that are assigned to a specific category.

    I tried [product_category number=”77″ parent=”0″], [product_category number=”77″] (77 is my category ID) but this is pulling all top-level categories onto the page and the second one does’t work at all. I only want the products from a single category.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jim

    (@jamesgreat)

    Hi @ladysyren sorry for the frustration.

    The correct shortcode should be

    [product_category category= "77"]

    . That should display your category correctly.

    Cheers,

    Jim

    • This reply was modified 3 months, 2 weeks ago by Jim.
    • This reply was modified 3 months, 2 weeks ago by Jim.
    • This reply was modified 3 months, 2 weeks ago by Jim.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for bringing this to our attention. To display products from a specific category, please try using the following shortcode:

    [product_category category= "77" limit="12" columns="4"]

    This will display only the products from that specific category and nothing else. For more details, you can refer to this guide:
    https://woocommerce.com/document/woocommerce-shortcodes/product-category/

    I hope this helps.

    Thread Starter ladysyren

    (@ladysyren)

    Thank you both so much! Both worked and I’ve copied them to notepad for safe keeping, as well.

    Plugin Support LovingBro (woo-hc)

    (@lovingbro)

    Hi @ladysyren, it is great to hear everything worked as you expected and that the shortcode is now displaying exactly what you need. It is wonderful that you saved the details for future use and it is always a pleasure helping you get things set up just right.

    If you have a moment, we would truly appreciate a quick review of WooCommerce at https://wordpress.org/support/plugin/woocommerce/reviews/#new-post. Your feedback means a lot to the team and helps other store owners too.

    Feel free to reach out anytime if you have more questions.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.