get_terms ignores orderby parameter since wc 3.6.1
-
Hi!
I used the following function for listing product categories and order them by name.
Since I last updated woocommerce to 3.6.1 (from 3.5.7) this is not working any more.
It does not matter, what I write into orderby. The terms are orderd by id i guess, in the same order as in the backend.I had this problem before, but then I added
'menu_order' => false
and it worked. But since the update nothing works any more.$terms = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', 'parent' => 2063, 'menu_order' => false, 'suppress_filter' => false ) );
I use
WP 5.1.1
Storefront 2.4.5
WC 3.6.1 (before, when it was working, I had 3.5.7 running)I switched themes and it also did not work.
I hope you can help me.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_terms ignores orderby parameter since wc 3.6.1’ is closed to new replies.