• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Woocommerce Category order

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Woocommerce Category order

This topic is: not resolved

Tagged: menu_order, product_categories, WooCommerce

  • This topic has 6 replies, 3 voices, and was last updated 6 years, 1 month ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 13, 2019 at 4:35 am #491132
    Erik78
    Member

    Hi,

    I'm using Genesis sample-theme and Woocommerce. Since the update to Woocommerce 3.6.2 the order of the product-category's is alphabetical. The drag and drop order that I made under Products -> Category is ignored.

    On the page where I display the different category's I use the [product_categories number="32" parent="0"] shortcode.

    Is there a way to solve this?

    I hope someone can help.

    Kind regards,
    Erik78

    May 13, 2019 at 5:57 am #491134
    Victor Font
    Moderator

    This is a question better asked of WooCommerce. It has nothing to do with Genesis.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 13, 2019 at 6:09 am #491135
    Erik78
    Member

    Hi Victor,

    I've previously searched the woocommerce-forums and the problem seems to be solved after updating themes like Storefront. https://wordpress.org/support/topic/product-categories-order-not-working-after-update/ That's why I opened this topic at Studiopress.

    Hope someone can point me in the right direction.

    May 14, 2019 at 12:34 pm #491157
    Brad Dalton
    Participant

    This may help https://wordpress.org/support/topic/product-categories-order-not-working-after-update/#post-11531166


    Tutorials for StudioPress Themes.

    May 16, 2019 at 4:14 am #491190
    Erik78
    Member

    Thank you braddalton,

    I have read through the topic but I don't understand what I should modify in this code you gave;

    add_filter( 'woocommerce_shortcode_products_query', 'woocommerce_shortcode_products_orderby' );
    
    function woocommerce_shortcode_products_orderby( $args ) {
    
        $standard_array = array('menu_order','title','date','rand','id');
    
        if( isset( $args['orderby'] ) && !in_array( $args['orderby'], $standard_array ) ) {
            $args['meta_key'] = $args['orderby'];
            $args['orderby']  = 'meta_value_num'; 
        }
    
        return $args;
    }

    Could you please help me with that?

    I have changed the shortcode on my page with category's to:

    [product_categories number="32" orderby=”menu_order” parent="0"]

    May 16, 2019 at 5:17 am #491192
    Brad Dalton
    Participant

    Please ask questions relating to WooCommerce, on the WordPress or WooCommerce forums.

    This is a WooCommerce question and doesn't relate to Genesis.


    Tutorials for StudioPress Themes.

    May 16, 2019 at 10:08 am #491203
    Brad Dalton
    Participant

    Also note, this solution may work, not sure if its what you're looking for.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble