首页 文章

如何在加载时显示特定产品类别的产品?

提问于
浏览
-1

我已经为我的WordPress网站购买了主题“Shop Isle Premium”,并在其上安装了WooCommerce . 我已将我的商店设置为我网站的首页,但对我来说还不够 .

我想在负载上显示特定类别的产品(它有类似特色产品:折扣,新产品等),因此人们只会看到我想先展示的几种产品 .

我想看到这个 . - 类别"Sonderangebot"的产品:
I want to see this. - Products of the category "Sonderangebot".

而不是这个 . - 商店中每个类别的产品:
Instead of this. - Products of every category in the shop.

我创建了“Sonderangebot”类别,现在我只需要在产品页面上查看它,该产品已经在一个或多个类别中 .

您可以查看多个类别:
You can check more than one categories.

我已经读过有关WooCommerce短代码的内容,但实际上,我不知道如何使用它们,或者这是否是解决我问题的方法 . 我也尝试过小部件“特色产品”,但我只能将它放在侧面部分,我希望它位于我页面的右栏,正如您在上面的照片中看到的那样 .

你能告诉我这件事吗?

1 回答

  • 0

    如果您需要在某个页面或主页上显示您的产品,您可以在woocommerce上使用短代码Shortcodes included with WooCommerce

    之后您可以在您的页面上尝试此代码,将显示8个产品,每行将有4个产品 .

    [products limit="8" columns="4" category="Sonderangebot" cat_operator="AND"]
    

    enter image description here

    关于左栏你可以使用像这样的短码[products limit =“2”columns =“1”category =“Sonderangebot”cat_operator =“AND”]

    但是对于左列更好地使用产品滑块YITH WooCommerce Product Slider Carousel你可以在那里阅读Plugin documentation

    Will be looks like this YITH WooCommerce Product Slider Carousel

相关问题