Title: Make PHP &#8220;go away&#8221;
Last modified: August 18, 2016

---

# Make PHP “go away”

 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/)
 * As I’m working on testing different plugins and tags, there are times when I 
   want the php tag or code line to “go away” when I generate the test page. I don’t
   want to delete it, I just want to comment it out. I’ve tried `<!-- <?php thecode(
   true, false, true); ?> -->` but that isn’t working.
 * How do you hide PHP tags within a template file so they don’t “work” but not 
   delete them?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182028)
 * //
 * the < ! — tag is an HTML comment…. to comment out PHP code, add // to the front
   of the PHP line.
 * `<!-- <?php //thecode(true, false, true); ?> -->`
    OR to do an entire block /**/
 * `<!-- <?php /*thecode(true, false, true); */ ?> -->`
 * Tg
 *  [idbehold](https://wordpress.org/support/users/idbehold/)
 * (@idbehold)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182095)
 * or
    <!– ?php thecode(true, false, true); ? –>
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182097)
 * Except that way, if you View Source, you would actualy see the PHP code, which
   maybe undesireable.
 * Tg
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182100)
 * You can leave off the html comment tags from TG’s post:
 * `<?php // thecode(true, false, true); ?>`
 * or
 * `<?php /* thecode(true, false, true); */ ?>`
 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182102)
 *  Thread Starter [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182108)
 * Joni, that works great for CSS, but for testing plugins and different tags, hiding
   the PHP is critical.
 * Thanks to everyone. This will really help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Make PHP “go away”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [Lorelle](https://wordpress.org/support/users/lorelle/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/make-php-go-away/#post-182108)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
