This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Inline PHP


The plugin can execute php string in posts/pages, and display the output as the contents of posts/pages. Just quote what you want to execute in <exec>...</exec> or [exec]...[/exec] tag.

Here is a simple demo:

echo ‘This is a test’;

echo ‘This is a test’;

An advanced demo may look like this:

       $filestr = file_get_contents('');
       if (preg_match('/<p>.*<\/p>/ums', $filestr, $matches)){
           echo str_replace("<p><a href=\"#page-rank-update-list-history\">Top of Page Rank Update List History</a></p>", "", str_replace("<table width=\"65%\">", "<table width=\"100%\">", $matches[0]));

Here is a post to show PageRank Export History with the code above. HERE
(Notice: I also add some CSS style to make the output nicer.)


  1. Upload inline-php.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use <exec>...</exec> or [exec]...[/exec] to quote php code that you wish to execute in your posts/pages

ਅਕਸਰ ਪੁੱਛੇ ਜਾਂਦੇ ਸਵਾਲ

  1. Why the plugin failed to work?
    First, check your php version. This plugin requires php 5. Version 1.1 may work under php4, but has not been tested yet. Then, check your php code and make sure it is correct. If problems still exist, visit Plugin Homepage to report a bug.

  2. I just wish to display <exec>...</exec> rather than execute any code, what should I do?
    Use <exec off>...</exec> instead; it won’t execute anything but display <exec>...</exec> and text in it.


There are no reviews for this plugin.

ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ

“Inline PHP” is open source software. The following people have contributed to this plugin.


“Inline PHP” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।

ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.