WP - PHP on Page

Discussion in 'WordPress' started by mynewchoice, Nov 7, 2006.

  1. #1
    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
     
    mynewchoice, Nov 7, 2006 IP
  2. duzins

    duzins Peon

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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 and here and here 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.
     
    duzins, Nov 8, 2006 IP
  3. mynewchoice

    mynewchoice Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    mynewchoice, Nov 8, 2006 IP
  4. JagoHarry

    JagoHarry Well-Known Member

    Messages:
    2,311
    Likes Received:
    178
    Best Answers:
    0
    Trophy Points:
    183
    #4
    You can also try runPHP. I use that with no problems.
     
    JagoHarry, Nov 8, 2006 IP
  5. mynewchoice

    mynewchoice Peon

    Messages:
    81
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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
     
    mynewchoice, Nov 8, 2006 IP
  6. varunkrish

    varunkrish Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    wordpress automatically removes any php code in the post.. You need to take help of these plugins like ExecPHP
     
    varunkrish, Nov 9, 2006 IP