I added a Custom Field named 'cognome_nome' in my Custom Taxonomy named 'authors'. I would like to display in a Archive Page a list of all 'cognome_nome' values of the terms.
Examples:
1.term
- Name: Elena P
- slug: elena_p
- cognome_nome: P Elena
2.term
- Name: Andrea P
- slug: andrea_p
- cognome_nome: P Andrea
I would like to display:
- P Elena
- P Andrea
and so on... Do you think it's possible?
Thank you in advance :)
EDIT
I'm using this code to list all the terms:
$terms = get_terms( 'authors' );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
echo '<ul>';
foreach ( $terms as $term ) {
echo '<li> <a href="' . get_term_link( $term ) . '">' . $term->name . '</a></li>';
}
echo '</ul>';
}
$term->cognome_nome
not work?