• I am at a complete loss here. I’ve been using exec-php for a couple months now without a problem. I also have WP Unformatted plug-in installed that’s supposed to remove the auto p tags. There are a couple pages that are 90% PHP driven that work fine.

    I tried creating a new page today to use for mostly PHP scripting again, but something appears to be broken in the way WordPress interprets the page. The only way I can get my PHP to work is by keeping it all on a single line such as <?php echo "test"; ?>. If I view source in Firefox it shows <p>test</p>. Those p tags shouldn’t be there – my other pages which use the same plug-ins aren’t wrapped in p tags.

    Also, if I try this on my new page nothing at all shows up in the content area:

    <?php
    echo "test";
    ?>

    Viewing the source on that shows nothing there. No empty p tags or anything. I haven’t updated the blog or any plug-ins so I’m completely confused as to what’s going on.

    To make it even more strange, I copied/pasted some of the working PHP code from one of the original pages. Again none of the PHP works on the new page. I’ve been trying other plug-ins and the filter code to remove the auto p, but nothing is working.

    Why would this stop working out of nowhere?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hoov

    (@hoov)

    Any idea why WordPress would still add p tags despite the plug-in to prevent it?

    Is there any way I can find out what plug-ins were recently updated? Maybe there’s a conflict somewhere.

    Thread Starter hoov

    (@hoov)

    Well I still don’t know what’s causing WordPress to do this so for the time being I just created a new template file with the code, and a blank WordPress page using that template.

    Hoov,

    there’s a php doc in /wp-includes/ (root dir) called default-functions.php open it in your favorite TEXT EDITOR (not word, or anything that adds formatting of any kind.) and search for auto, and they should all come up. Just be sure to READ what it is you’re commenting out.

    Be sure to make a back up, before you do anything. ??

    I would not recommend using a plug-in for this.

    -Alex F.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP and Auto p Tags’ is closed to new replies.