3

Answering for posterity, since I ran into the same issue and this thread is the closest thing I found to what I was looking for. The solution turned out to be quite simple. If you don't specify 'orderby' in your arguments, the default sort order will be used (the category order in the Woo admin). Just remove that part of your arguments.


1

Try the tag_cloud_sort hook: add_filter( 'tag_cloud_sort', 'shuffle_tags', 10, 2 ); function shuffle_tags( $tags, $args ) { shuffle( $tags ); return $tags; }


Only top voted, non community-wiki answers of a minimum length are eligible