伙计们,我添加了最新产品:
[recent_products]
有了它,我可以在某个类别中:
[product_category category = "book"]
问题:
我如何获得不包括某个类别的产品"recent_products",例如上面的那个类别。
我试过了,但没有得到结果:
[recent_products per_page="10" category="book" operator="NOT IN"]
您可以使用query_posts
。也可以参考此链接query_posts( 'cat=-3' );
这将分类id 3