Blogger Tools

facebook twitter feedburner Blogger Wordpress

RunPHP by James van Lommel, is a Plugin for WordPress that enables bloggers to embed PHP code directly into their posts.

How to use:

  • Download the plugin from the author’s site, and upload the files to the plugin directory of your wordpress weblog (/wp-content/plugins).
  • Activate the plugin by logging into your WordPress administration panel, going to ‘Plugins’ on the menu bar, then clicking Activate at the end of the RunPHP row.
  • Now add php codes in your posts and pages, by simply checking the new option box that says ‘run PHP code?’

The code executed by runPHP is not in the global scope. It is executed as if it were inside a function block and so you’ll need to declare your globals accordingly.

Note: The plugin doesn’t work with few badly written WordPress themes. This is most likely caused by a missing wp_head() call in the theme’s header template (often called header.php). If that is the case, fixing it is simply a matter of inserting.

5 Responses to RunPHP – Include PHP in your wordpress blog posts or pages.

  1. Pete says:


    Did you ever test rss2html with this plugin, and did you have any luck?

  2. Blogger Tools says:


    I have indeed experimented with rss2html
    You can use the script in your posts or pages by assigning the variables and including the file, like this

    < ?php
    $MAXITEMS = '5';
    $TEMPLATE = 'example.html';
    $XMLFILE = 'http://your.rss';

  3. Iván says:

    Thank you 4 the plugin.
    For me it works perfectly.

  4. Roch says:

    What I am looking to do is similar. I am looking to have a static page as well as the blog appear on the main page of my wordpress site. Right now going to the settings section will only allow me to do one or the other. any feedback would be appreciated.

  5. Jordan says:

    Do you still maintain this plugin?

Share this


Google XML Sitemap Plugin for WordPress

Google XML Sitemap Plugin for Wordpress

Google Webmaster Tools invites webmasters and ...

WordPress Youtube video blog theme

Wordpress Youtube video blog theme

Turn your Wordpress powered site into ...

Embed youtube videos in wordpress with KLM Flashembed plugin

Embed youtube videos in wordpress with K

In this post I'm going to ...

Recent Entries

Blogging productivity extensions for Chrome

Blogging productivity extensions for Chr

I recently switched my default browser ...

Ultimate security for your self-hosted blogs

Ultimate security for your self-hosted b

Unfortunately, our blogs are a constant ...

5 Free Webdesign Tools I cannot live without

5 Free Webdesign Tools I cannot live wit

1. Free tool to optimize, clean ...

10 Best Free WordPress Magazine Themes

10 Best Free Wordpress Magazine Themes

Magazine themes with grid layouts are ...

Best Tools for blogs

Best Tools for blogs

Creating a blog on blogger is ...

WordPress 2.5 Released

Wordpress 2.5 Released

Time to upgrade your blogs again ...

WordPress Web2.0 Themes

Wordpress Web2.0 Themes

When I first created this blog, ...

More visitors to your Blog

More visitors to your Blog

When you post a new article ...