View Full Version : WP - PHP on Page
mynewchoice
Nov 8th 2006, 12:10 am
In my WP blog, is there a way to create a new page that will allow me to enter PHP code? It doesn't seem to be recognizing the commands and I haven't seen a setting that would allow me to do this yet.
Can anyone tell me how to get this done?
-mnc
duzins
Nov 8th 2006, 1:43 am
I'm not an expert, but the only way I've had success is to actually edit the template. Here I've edited the page template (http://celebritypicturesandnews.com/?page_id=3) and here (http://safelicehelp.com) and here (http://balanceindiet.com) I've edited the index template.
Unless I'm mistaken, you can't place php inside the page/post w/o a php plugin (which I could never get to work on my sites).
Good luck.
mynewchoice
Nov 8th 2006, 1:46 am
I'm not an expert, but the only way I've had success is to actually edit the template. Here I've edited the page template (http://celebritypicturesandnews.com/?page_id=3) and here (http://safelicehelp.com) and here (http://balanceindiet.com) I've edited the index template.
Unless I'm mistaken, you can't place php inside the page/post w/o a php plugin (which I could never get to work on my sites).
Good luck.
Thanks for the feedback. I've actually installed Exec-PHP plugin and everything is working great right now. It does require that I disable the visual rich editor but other then that, the integration and use of the plugin was a breeze.
Editing the page template would probably work as well but for the time being I will stick with the use of this plugin since it seems to be working well. Thanks for the feedback.
-mnc
JagoHarry
Nov 8th 2006, 2:36 am
You can also try runPHP. I use that with no problems.
mynewchoice
Nov 8th 2006, 7:22 am
You can also try runPHP. I use that with no problems.
I saw that one as well but just happened to install and test the other plugin first. But I will keep that in mind if I run into problems with Exec-PHP.
-mnc
varunkrish
Nov 9th 2006, 5:06 am
wordpress automatically removes any php code in the post.. You need to take help of these plugins like ExecPHP
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.