Title: PHP
Last modified: August 20, 2016

---

# PHP

 *  [Red Deer Web Design](https://wordpress.org/support/users/bdbolin/)
 * (@bdbolin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-12/)
 * Hey guys,
 * I’m using exec php, which works great, however when switching from visual to 
   html, and back, it ruins the code.
 * I am also using raw html… doesn’t work for php.
 * Original:
    [raw]<?php if ( is_user_logged_in() ) { echo ‘test’; } else { echo‘
   test’ ?>[\raw]
 * After switching:
    [raw]<!–?php if ( is_user_logged_in() ) { echo ‘test’; } else{
   echo ‘test’ ?>[/raw]
 * It is essentially commenting out the php. 🙁 Any ideas?

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

 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-12/#post-2829550)
 * disable the visual editor in your profile
 *  Thread Starter [Red Deer Web Design](https://wordpress.org/support/users/bdbolin/)
 * (@bdbolin)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/php-12/#post-2829613)
 * Yea, I thought of that too, but I also have quite a few tables that just wouldn’t
   be workable in HTML view.
 * Any other ideas? Why does WP even start commenting the code out?

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

The topic ‘PHP’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Red Deer Web Design](https://wordpress.org/support/users/bdbolin/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/php-12/#post-2829613)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
