![]() |
I need plugin to run php inside a wordpress post
I just tried phpexec & runphp, neither of which work.
Anyone got or know wordpress plugin that will allow me to run php inside a wordpress post? |
Exec-PHP is what to use no?
|
Quote:
I embedded code in between the tags and wordpress post shows the code instead of what the php is telling it to show |
Read the comments on Exec-php page and you will find a link to the new version that does work.
|
Quote:
|
|
Yeah make sure you aren't using Visual editor. If you need help I am expert at Wordpress... hit me up
|
+1 for exec-php.
|
Turn the stupid visual editor off, its pointless
|
I have visual editor off and also have role manager plug in.
I have tgp on root & blog in dir. Script is in root & I'm trying to include tgp script in post or page thats on blog in dir as; Code:
<?Code:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ? 65′ at line 1 |
This is because $offset isn't holding a value.
How is offset being passed to your script? If it is by the address (GET) then you need something like: Code:
$offset = $_GET['offset']; |
run_php works great for me !
http://dev.wp-plugins.org/wiki/RunPHP |
Quote:
So I have this text tgp for a bit on domain.com then decided to add a blog on domain.com/blog and now I'm trying to include the script in a blog post or a blog page so I can move blog to domain.com & still have the text tgp present on the site. |
exec-php should do the trick
|
Quote:
|
| All times are GMT -7. The time now is 04:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123