WordPress.org

Plugin Reviews

PHP Code Widget

Like the Text widget, but also allows working PHP code to be inserted.

37 reviews
Average Rating
4.5 out of 5 stars
Works like a champ!
By , for WP 4.1.1

I'm running 4.1.1 on multi site and this solves an issue for me that was going to take way more time to code a custom widget! Thank you for releasing this!

Thank you
By ,

Great work!

Works like a charm
By , for WP 4.1

I love it simplicity!!

Very Useful Plugin
By , for WP 4.0.1

I find this plugin very useful. As the description says, it lets you put code into the widget areas which is really helpful for developing customized websites.

Very useful
By , for WP 4.0.1

Just does what it's supposed to do !

Incompatible with rtMedia.
By ,

I spent a good few hours trying to figure out why my gallery broke. I had edited multiple css, php, and plugin codes to try to resolve the issue. Suddenly it hit me. I finally realized that php code was my latest installation and removed it. rtMedia gallery works again.

A bit frustrated I went and found a better widget.

I am now using Enhanced Text Widget which is compatible & "0" issues.

Nice plugin
By , for WP 4.0

Works as expected.

Not working
By ,

Not working with WordPress 4.0

Good, but problems with myysql scripts
By , for WP 3.9.1

UPDATED TO FIVE STARS: FIXED my own code; SEE COMMENTS in three star section -- Alex. Use mysqli, not mysql.

This widget is great for simple php code and I recommend it. But I get mixed and even inconsistent results making read or write calls to my hosted server mysql database. I'm using the twentyeleven theme.

The same script that executes great in a standalone test.php in my browser may run in a PHP Code Widget, or it may run OK but break the sidebar below the insertion point, or it may not run at all.

A single database call seems to work better than multiple calls in the same script or multiple scripts in successive PHP Code widgets.

In fairness, I've been coding in Perl and mysql for years (very helpful) but I've only been picking up PHP more recently. I can provide code samples, but not sure this is the right forum for that.

Any common experience, comment or suggestions? Thanks!

great
By ,

works

You must log in to submit a review. You can also log in or register using the form near the top of this page.