wordpress woocommerce 短代码以显示具有相同类别的列表产品
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16668370/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:14:59 来源:igfitidea点击:
woocommerce shortcode to display list product with the same category
提问by Alex
Is there a woocommerce short code to display a list of products with the same category?
是否有 woocommerce 短代码来显示具有相同类别的产品列表?
I tried with:
我试过:
[items per_page="6" columns="3" orderby="date" order="desc" category="10-20-percent"]
It did not work.
这没用。
回答by handicop
Did you try these?
你试过这些吗?
[product_categories number="14"]
or
或者
[product_category category="snowpeak" per_page="12" columns="4" orderby="date" order="desc"]
回答by manson
[product_category category="categoryname"]