is there any way to display the main categories with subcategories and their products in woocommerce? php or shortcode? I've tried with some conditional formatting,but nothing.
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
- Facebook Login With WP JWT Auth
- Wordpress development process
You have two default shortcodes available to display both, product categories (with a specific parent category defined, to display subcategories,) and products contained inside a specific category.
To display top-level categories use the shortcode:
If you want to display subcategories, include the category ID inside the parent attribute.
To display products inside a category:
Full reference for this shortcodes: product categories shortcode and products in category shortcode