List taxonomy term “Last Name” + “First Name” (taxonomy custom field) in a post loop

So I decided to go another way. I now have the Author’s Full Name as terms in the taxonomy. For the index, for which I need to separate Last Name and First Name, I used PHP string functions.

<?php
    $taxonomy = 'autores';
    $queried_term = get_query_var($taxonomy);
    $terms = get_terms($taxonomy, 'slug='.$queried_term);

    if ($terms) {
      echo '<div id="indiceAutores-nav"></div> <div id="columns"><ul class="indiceAutores" id="indiceAutores">';
      foreach($terms as $term) {
        $names=explode(' ',$term->name);
        $lastname=array_pop($names);
        $firstname= $term->name[0];

        echo '<li><a href="'.get_term_link($term->slug, $taxonomy).'">'.$lastname .', ' .$firstname .'.</a></li>';
      }
      echo '</div></ul>';
    }
    ?>

I also added some jQuery plugins for the final iteration:
http://cea.iscte.pt/cadernos/?page_id=80