Manually specified HTML between PHP
-
Hello,
I have the following code:
————-
<?php if (is_single()) { ?><p>Some text.</p>
<?php } ?>
————-I have tried to put the following in a post:
————-
[insert_php] if (is_single()) { [/insert_php]<p>Some text.</p>
[insert_php] } [/insert_php]
————-But it does not work the way that it should. “Some text.” is displayed on both in the post, as well as on the front page, which should not be the case.
Could you please assist with this?
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Manually specified HTML between PHP’ is closed to new replies.