I’m displaying a list of terms that a post is assigned to by using the following:
<?php
$terms = get_the_terms( $post->ID , 'winetype' );
$sep = ', ';
foreach ( $terms as $term ) {
echo $term->name;
echo $sep;
} ?>
But we would like the output to be in descending alphabetical order (Z-A), I can’t find a way to use order => DESC on this, any suggestions?
Many thanks in advanced.