WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

MaGiKS Proper PHP Include

Properly include PHP code into posts and pages, and maybe even widgets, in WordPress.

Why did you create this plugin?

I created this plugin because I needed the ability to include the exact same content in multiple places but I only wanted to update it in just one place... plus WP-Ads stopped working for me. As a bonus I knew I can include PHP in the file as well.

Does the include file have to have PHP code in it?

No, you can add any HTML, JavaScript, etc. in there, with or without PHP, which can be handy if you have the same content that you would like to display in multiple places but only want to update in just one.

Aren't there already plugins that do this?

Maybe. As far as the execution of PHP goes, I only found ones that either require the Visual Editor to be disabled, or claim that it doesn't. I have found in my testing that the ones that suggest you can leave the Visual Editor on did not work as desired for me. My code would still break. Not that I use the Visual Editor often, but my clients do. So to suggest turning it off to get plugins to work is just silly IMHO.

Are you a magician?

No, but thanks for asking.

Requires: 3.0.4 or higher
Compatible up to: 3.0.5
Last Updated: 2011-1-27
Downloads: 3,665

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0
100,1,1
100,1,1
100,1,1
0,1,0