Title: Urgent problem running PHP code in posts.
Last modified: August 19, 2016

---

# Urgent problem running PHP code in posts.

 *  [loktakwah](https://wordpress.org/support/users/loktakwah/)
 * (@loktakwah)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/urgent-problem-running-php-code-in-posts/)
 * I’m in a real bad spot atm and need some serious help.
 * I was putting php code in posts in wordpress using a plugin: execPHP.
 * Everything was working fine all day. I don’t know what changed, but now, no PHP
   code is converting. I’ve tried two plugins, execPHP and runPHP, both with the
   same results.
 * [http://www.pokerjuke.com/?p=928](http://www.pokerjuke.com/?p=928)
 * The entire post of that was written in the regular html (not WYSIWYG).
    The posts
   contents are:
 *     ```
       Learn how to correctly use a pushbot chart for late-stage tournament play.
   
       <?php
       global $userdata;
       get_currentuserinfo();
       $userid = $userdata->ID;
   
       echo ('<a href="http://www.pokerjuke.com/buynew.php?subid='.urlencode($userid).'&item=pushbotguide"><span style="color: blue;"><span style="text-decoration: underline;">Pushbot Video Guide</span></span></a>');
       ?>
       ```
   
 * The things I fiddled with that could cause this issue:
 * I unchecked the “Use the visual editor when writing” box in the admin panel.
 * I changed roles of a user. I know you can set user permissions to who can run
   php code. The code was written by an admin with access.
 * That’s about all I did. The only reasonable thing I think that could have caused
   this is disabling the visual editor. I have checked the box again and tried making
   new posts but I still get the same problem. Plus, I remember viewing pages after
   making that change and they were fine.
 * I don’t remember editing anything at all in between when pages went from working
   to broken.
 * I’m very worried that my site is going to need a complete rebuild now Can anyone
   think of anything that might save me from that?

The topic ‘Urgent problem running PHP code in posts.’ is closed to new replies.

## Tags

 * [exec](https://wordpress.org/support/topic-tag/exec/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [phpexec](https://wordpress.org/support/topic-tag/phpexec/)

 * 0 replies
 * 1 participant
 * Last reply from: [loktakwah](https://wordpress.org/support/users/loktakwah/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/urgent-problem-running-php-code-in-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
