gmdavis62
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: using php includes on pagesUPDATE: I just found that (for both runPHP and PHPexec) if you enclose your php in
<pre>
</pre>
tags, WordPress won’t insert<br />
at the end of each line of the resulting html.However, some php includes still don’t work as expected. I’m not sure yet what is happening.
Forum: Plugins
In reply to: Run PHP Functions in Pages and Posts?UDATE: I just found that (for both runPHP and PHPexec) if you enclose your php in
<pre>
<pre>
tags, WordPress won’t insert<br />
at the end of each line of the resulting html.However, some php includes still don’t work as expected. I’m not sure yet what is happening.
Forum: Plugins
In reply to: Run PHP Functions in Pages and Posts?To claify: I was using javascript (embedded in a PHP file) as an include. PHP can include any type of file in a webpage. These plugins SHOULD be able to support this or wordpress should allow you to turn off the automatic adding of
<br />
after each line.Forum: Fixing WordPress
In reply to: replacing a blogger blog with wpI haven’t done this before but I plan to do this. Crete the WP blog in it’s own directory. make sure it all works the way it should.
Then, rename the directory the original blogger blog is in (in you case neme “/blog” to “/old_blog”. The rename the WP blog folder “blog”.
That should do it?
Forum: Plugins
In reply to: Run PHP Functions in Pages and Posts?Both of these plugins (runPHP and PHPexec) will add
<br />
after each line of the includes. I only know this because when I use php include to add a javascript file, all these<br />
s get added and ruin the code.When I include a PHP file, it just doesn’t work but doesn’t show up in the html code-view.
As I asked elsewhere, is there a setting for WP I can turn off?
Forum: Fixing WordPress
In reply to: using php includes on pagesI found that using phpexec with wordpress 2.0 and php 4.4.1 will add
<br />
tags to the end of each line of the include making it useless.I am using the non-rich post editor and I cannot find any way to turn this “feature” off. I suspect WordPress is adding the
<br />
tags. I don’t see anything adding this in the phpexec code.Forum: Fixing WordPress
In reply to: how to use php in WPThat IS what I’m trying to do. Thanks! I’ll look into the plugins.