• Hi,

    someone can help me understand why this code doesn’t read/display the < h2 > html style?

    <?php
    
    if (the_tags() == IsNull) {
       echo '<h2>' . the_tags('nuvens: ',' | ') . '</h2>';
    }
    else {
        echo '';
    }
    ?>

    thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter nair

    (@nair)

    well, i think the code above is wrong. what i need is a if condition to show the post Tags wraped with < h2 > only if Tags exist… if not, the echo is blank.

    thanks

Viewing 1 replies (of 1 total)

The topic ‘why this statement doesn’t read the <h2> tag html?’ is closed to new replies.