WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages not working at all. (2 posts)

  1. adamtal
    Member
    Posted 2 years ago #

    Hello,

    I'm trying to use the "Allow PHP in Posts and Pages" plugin, but it only echos whatever I write in my post. I tried adding the following to my post:

    [php]
    echo "Hello World";
    [/php]

    but that's exactly what I see as an output on the post (rather than just "hello world". I tried this code both in the visual editor and in HTML mode.

    I also tried [php function=1] and added a the snippet:

    echo "hellow world";

    But it just echos '[php function=1]' in my post rather than 'hello world'.

    What coule cause this weird problem?

  2. jmzolezzi
    Member
    Posted 2 years ago #

    I've tried this and it works properly, so I guess it has something to do with your setup.

Topic Closed

This topic has been closed to new replies.

About this Topic