• Resolved torbent

    (@torbentschechnegmailcom)


    Hello,
    I use this function to get all product categories on the frontend:

    $product_categories = get_categories( array( 'taxonomy' => 'product_cat', 'child_of' => $parent_id, 'orderby' => 'menu_order', 'order' => 'asc' ));

    But the order of the elements in $product_categories do not reflect the order that I can see in the WP Backend. I can reorder product categories in the backend via Drag n Drop, but how can I get a list of the product categories in that order on the frontend?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter torbent

    (@torbentschechnegmailcom)

    I think this one can be deleted, as it seems to be the default once I removed my query parameter.

    • This reply was modified 7 years, 2 months ago by torbent.
Viewing 1 replies (of 1 total)
  • The topic ‘get_categories() / Order of product categories?’ is closed to new replies.