'; $auth = null; $terms = get_the_terms ( $post->ID, 'astrofotografi' ); $numcat = sizeof( $terms ); $i = 0; foreach ( $terms as $term ) { $term_link = get_term_link( $term, 'tipologia_contenuto' ); $i++; if ( $i <> 0 ) { $auth = $auth.'

'.$term->description.'

'; } else { $auth = $auth; } } $out = $img.$auth; return $out; } );