# Form of PHP tags within HTML code

**URL:** <https://forum.pinegrow.com/t/form-of-php-tags-within-html-code/89>\
**Category:** Pinegrow WP\
**Created:** [August 4, 2016, 1:55am UTC](https://forum.pinegrow.com/t/form-of-php-tags-within-html-code/89 "2016-08-04T01:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![greyguru](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/greyguru/32/33_2.png) [@greyguru](https://forum.pinegrow.com/u/greyguru)\
**Post date:** [August 4, 2016, 1:55am UTC](https://forum.pinegrow.com/t/form-of-php-tags-within-html-code/89/1 "2016-08-04T01:55:20Z")

</div>

In the documentation, (Creating WP themes) it says:

> Note, that php…/php tags are used instead of \<?php … ?\>, so that code blocks can be properly displayed during editing in Pinegrow. Do not use \<?php … ?\> syntax in HTML code of Pinegrow WP source files, because that can lead to undesired results.

When I changed what I had copied and pasted in to conform to the above, it stopped working, and I changed it back to the “bad” way and it worked again. Is this part of the documentation still true?

---

<div class="post-metadata">

**Author:** ![itsmeleo](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/itsmeleo/32/19_2.png) [@itsmeleo](https://forum.pinegrow.com/u/itsmeleo)\
**Post date:** [August 8, 2016, 8:55am UTC](https://forum.pinegrow.com/t/form-of-php-tags-within-html-code/89/2 "2016-08-08T08:55:46Z")

</div>

I’m sure that

```
<php>Youcode;</php> 

```

is out-dated information, now you can use

```
<?php youcode; ?>

```

to insert the code.

Thank You!
