List custom taxonomy terms from custom field
The problem you are facing is that get_the_terms() returns an array (or false or a WP_Error-Object), not a string. So, assuming that you have multiple terms for images, you could use a code like this: if( $labels && !is_wp_error( $labels ) ) { foreach( $labels as $label ) { $labelarray[] = $label->name; } $labelstring = … Read more