PHP block changed to comment by WordPress?
I’m trying to print stuff with PHP using a simple echo:
<p>Test <?php echo 'Hello'; ?></p>
But “Hello” is not displayed.
When I inspect the webpage I can see that the PHP block has been commented out:
<p>Test <!--?php echo 'Hello'; ?--></p>
Is it a bad practice to use PHP like that? (I’d like to display the date actually)
Thank you for your help.