Urgent help needed with 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
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 (‘<span style=”color: blue;”><span style=”text-decoration: underline;”>Pushbot Video Guide</span></span>‘);
?>
————————————-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?
-
$userid = $userdata->ID;
echo (‘<span style=”color: blue;”><span style=”text-decoration: underline;”>Pushbot Video Guide</span></span>’);
?>*of course it actually echoes the <a href code…
Thanks for any help or ideas.
-
You’re in the wrong forum. This is for bloggers hosted here at wordpress.COM.
You need to head over to http://wordpress.ORG/support/ .
-
- The topic ‘Urgent help needed with PHP code in posts’ is closed to new replies.