New Landing How can we help? Atelier Product Shortcode – Want to display only Parent Categories

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Atelier
  • #265285
    alistairporter
    Member
    Post count: 3

    Hi There, I am having issues with the product shortcode. When I select to display the Parent category, it displays all of its children including the parent. Is there a way to just show the Parent Category from the product short code? if not what is the solution? is there a php file I can edit? Thanks!

    http://blanew.wpengine.com/store/ The parent categories are Product and Modifications

    For front-end not wordpress
    user –> demo
    pass –> e4d518

    #265294
    kyzcreig
    Member
    Post count: 137

    This would be nice I agree.

    #265305
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    If you contact WooCommerce support they should be able to give you a function to display only the parent category

    – Kyle

    #265437
    alistairporter
    Member
    Post count: 3

    This is perfect thank you Kyle!

    Solution

    [product_categories number=”2″ parent=”0″]

    number –> sets how many you want to see,
    parent –> level of depth for categories

    Just throw it in and looks just like the product shortcode in the swift editor.

    Best

    #265438
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks @alistairporter,

    For anyone else, there is a full list of Woo’s shortcodes: https://docs.woothemes.com/document/woocommerce-shortcodes/.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register