Reply To: Masonry layout doesn't work

New Front EN Support Forums Ikebana Theme Support Masonry layout doesn't work Reply To: Masonry layout doesn't work

#2177
mmsatori
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