Sometimes, it becomes necessary to run a PHP code in your wordpress posts or pages to display a plugin output or for other reasons to make use of wordpress as a powerful CMS. There are virtually countless plugins which allow you to run PHP in wordpress.

WordPress PHP exec” is a plugin that lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them afterwards, so it should be safe to use PHP code that has literal HTML tags in it, for example: code which print out HTML.

For example, you can put you PHP codes like

<phpcode>
<?php
echo “Current date and time: “;
echo date(“l dS of F Y h:i:s A”);
?>
</phpcode>

and get your output inside your page/post.

Download PHP Exec Plugin for Wordress here.

For updates on Use PHP in WordPress
Enter your email here: