• Hello Friends,

    I apologize for this ubernoob question, but here goes:

    So I’m playing with WP for the first time and I tried adding a quick
    php test, like <?php php_info();> or <?php echo(“foo!”); ?>

    Into an exisiting and functioning WP page. But, when I save a space is automagically inserted into the tag: < ?php, and the code does not work, obviously.

    Suggestions greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter indigoarthur

    (@indigoarthur)

    Can someone please help me with this? I’m freaking out =(

    I’ve doing doing research and at this point I am not sure if this is some stupid wordpress functionality the prohibits you from using php code because that would be too easy, or if it is an error with one of the installed plugins that erroneously inserts a space. I found some material online describing the latter but I do not have the plugins mentioned.

    Do I need to download another plugin just so “smart” wordpress will let me insert php into pages? Can WP be hacked not to disable php?

    Someone please tell me something 😉

    Don’t really want to bump a 5 month old thread, but I am now experiencing this as well. I had a <?php include(‘file’); ?> script set into a page using Exec-PHP (and then also runPHP), but am not getting the magical extra space. The script was in the page prior to the WP 2.7 update.

    I’ve tried a lot of things, and nothing works. Please help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Trouble adding PHP tags to WP’ is closed to new replies.