PHP and Auto p Tags
-
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?
- The topic ‘PHP and Auto p Tags’ is closed to new replies.