Converting HTML code to doc


This is not a common problem, but still important. If you want to export data from a web app to Microsoft Word or Open/Libre Office, you will mostlikely use PHPWord.

PHPWord is a great choice for this, because you can define templates, that means, that you can write a Word document, and include tags to replace in it.

However, PHPWord does not allow the conversion of HTML marked-up text to OpenXML, the markup of Microsoft Office documents. Continue reading “Converting HTML code to doc”

PHP Everywhere

PHP Everywhere allows the usage of PHP in Widgets, Posts and Pages.
PHP Everywhere allows the usage of PHP in Widgets, Posts and Pages.

I created this plugin because I have not found a WordPress PHP plugin which is simple to use and provides a good user experience while being able to use PHP or HTML in Posts, Pages or Widgets. It is able to use multiple PHP instances and has built in role management.


Download it here.


Use PHP and HTML in

  • Widgets
  • Pages
  • Posts



  • initial release


  • added multiple PHP instances


  • fixed some bugs


  • added a german translation




Simply activate the


Widget. in your sidebar and paste your PHP code including the PHP Tags like this:

<?php  echo("Hello, World!"); ?>

You code may contain HTML Elements or have multiple lines.

Posts & Pages

Edit or create a new post or page and simply put your PHP Code including the PHP Tags into the side options_box, which is labeled “PHP Everywhere”. Then put the


shortcode where you want the code to appear. Your code may contain multiple lines or HTML Tags.

Multiple PHP instances

If you want to use multiple PHP instances use the shortcode with the instance parameter like this:

[php_everywhere instance="1"]

Your PHP snippet should look like this:

echo("Number one!");
echo("Number two!");