How To Execute PHP Code On WordPress Widget

For a WordPress newbie inserting a PHP script inside the WordPress template files isn’t that easy. Normally WordPress widgets doesn’t allow executing PHP code on inside the widget and if you try to insert you will encounter with a weird error. So what could be the solution to insert PHP codes? Well, recently I found out a very nice WordPress plugin that enables adding PHP codes on your WordPress sidebar and that is PHP Code Widget.

PHP Code Widget is an easy to use plugin through which you can execute PHP codes. A simple tool for WordPress newbies to do some great things. To install the plugin, just search for PHP Code Widget on Plugins > Add New from your WordPress dashboard. After activating the plugin, go to Widgets and there you can see the widget “PHP Code”. Now drop the widget to your favorite location and insert any PHP code which you would like to execute.

php code widget for wordpress

If you face any trouble in installing this plugin let us know. The plugin is compatible upto 3.0.1.

November 18, 2010. This entry was posted in Tutorials, WordPress and tagged . Bookmark the permalink.

We Recommend HostGator Hosting

Bloggermint strongly recommends Hostgator Hosting for all of your web hosting needs. Sign up today for WordPress Hosting at just $4.95/month.

Use coupon code "bloggermint" to get 25% discount on any hosting packages. Get an account with Hostgator now!