Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

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