Issue with sorting taxonomies
-
Hello,
In the scporder_get_terms_orderby() function, the $taxonomy variable (from $args[‘taxonomy’]) is an array with one taxonomy name as an item, so in_array is comparing two arrays.
We had to add the following to get it work:
$taxonomy = $args['taxonomy']; if(is_array($taxonomy)) { // new addition $taxonomy = $taxonomy[0]; }
Can you add this into the plugin?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Issue with sorting taxonomies’ is closed to new replies.