Right, seems fine now. Thanks
yep, same here. Just updated and everything broke.
for anyone interested I changed the function a bit to be used just like get_the_terms(..)
function get_the_terms_sorted( $post_id, $taxonomy ) {
$terms = get_the_terms( $post_id, $taxonomy );
function cmp_by_custom_order( $a, $b ) {
return $a->custom_order - $b->custom_order;
}
if ( $terms ) usort( $terms, 'cmp_by_custom_order' );
return $terms;
}
Thanks, this seems to work just fine 😉