• Resolved kasupure

    (@kasupure)


    Hello! i got little problem. When i try add this code inside my template:
    <?php
    if (is_single()) {
    echo “<?php the_category(); ?>”;
    } else {
    echo ‘Something’;
    }
    ?>
    it wont show up, BUT it will show up in code section (mouse right click and that way) and the color of the code is pink. Is the code wrong which i have pasted to begin of the post or what might be the problem? Help if needed 🙁 !

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

    (@kasupure)

    Ups! Nvm i found the “bug” myself i accidently added <?php stuff in front of code ^^! so if anyone is getting same problem just remove those php marks like this:

    <?php
    if (is_single()) {
    the_category();
    } else {
    echo ‘Something’;
    }
    ?>

Viewing 1 replies (of 1 total)

The topic ‘php wont show up ….’ is closed to new replies.