We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Custom Fields Reply To: Custom Fields

#13231
Tom
Keymaster

Try this:

$terms = get_the_terms( get_the_ID(), 'dormitorio' );

    if ( isset( $terms ) && '' !== $terms ) {
        foreach( $terms as $term ) {
            echo '<div class="tax dormitorio ' . $term->slug . '">';
            echo $term->name;
            echo '</div>';
        }
    }