WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

PHP Code Widget

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

23 reviews
Average Rating
4 stars
4.5 out of 5 stars
You are currently viewing the reviews that provided a rating of 5 stars. Click here to see all reviews.
5 stars
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!

5 stars
great
By ,

works

5 stars
So useful!
By , for WP 3.9.1

I use this helpful plugin so often that I almost take it for granted! This functionality should just be included as standard. Thanks so much.

5 stars
Great
By ,

Does what it promises to do!

5 stars
Does what it says
By ,

Great and useful plugin

5 stars
Very helpful!
By , for WP 3.9

Extremely useful for me as a non-developer with a basic knowledge of php.
I use it together with widget logic and it works great!

Regards,
Rey

5 stars
really Thank you, with a smile!!
By , for WP 3.8.1

But my code is fine!
No, it's not. Really. (...sad but true...)

:D !!!

5 stars
Best of it's kind.
By , for WP 3.8.1

This is one of the BEST plugins i've come across. So long as you know your basic sh*t this is a real lifesaver! *bows to developer*

5 stars
Nice!
By , for WP 3.8

Nice, I wanted the Meteor Slider php code in a custom header widget and with this plugin I was able to manage it! Thank you for developing.

5 stars
Works great
By , for WP 3.8

Just drop the php+html code and 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.