【问题标题】:Only show top level categories on a WooCommerce home page仅在 WooCommerce 主页上显示顶级类别
【发布时间】:2016-09-11 03:40:33
【问题描述】:

我正在使用 WooCommerce 插件建立一家新商店,到目前为止一切正常,除了现在我只想在主页上显示顶级类别而不是类别和子类别。

我的商店有 4 个主要类别和 25-50 个子类别,这让主页看起来很丑。有没有自动方法只购买前 4 个类别,还是我必须手动执行此操作?

我正在使用 ShopKeeper 主题 http://themeforest.net/item/shopkeeper-ecommerce-wp-theme-for-woocommerce/full_screen_preview/9553045

【问题讨论】:

    标签: wordpress woocommerce


    【解决方案1】:

    只是一个补充,在 parent 中输入类别的 ID 以显示该类别的子项。转到产品 > 类别,将鼠标悬停在所需类别的链接上并在 URI 中找到 ID 即可轻松找到它。

    【讨论】:

      【解决方案2】:

      显示所有顶级类别:

      [product_categories number="0" parent="0"]

      【讨论】:

        【解决方案3】:

        您好,您需要在商店页面上使用 woo commerce 短代码。

        [product_categories number="4" parent="0"]
        

        【讨论】:

        • 这么简单...我现在感觉很糟糕;)谢谢
        猜你喜欢
        • 2017-05-13
        • 2021-04-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-07
        相关资源
        最近更新 更多