New Front EN › Support Forums › Ikebana Theme Support › Masonry layout doesn't work › Reply To: Masonry layout doesn't work
December 19, 2013 at 9:12 am
#2177
satori
Keymaster
Hey Csaba,
if you want to display only the first tag, you can use this:
ID , 'tagportfolio' );
print_r($p_terms);
if ( $p_terms && ! is_wp_error( $p_terms ) ) {
$term_links = array();
foreach ( $p_terms as $p_term ) {
$term_links[] = $p_term->name;
}
$termslinks = $term_links[0];
echo '
'.$termslinks.'
';
}
?>
Sincerely,
Andrii / Satori Studio