[product_categories
number="3"
ids="1, 2, 3, 4""]
]

Full list of WooCommerce shortcodes