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.

AmberPanther WP Include File

WP Include File utilizes the WordPress Shortcode to include the contents and output from PHP code located in an external file within the post content.

Why do you need WP Include File?

WP Include File is needed because any PHP code you type within the tinyMCE will not be rendered when the post content is displayed. Hence instead of having to create templates for each specific task/post, you can just create localized specific files and just include them in the post content using WP Include File.

Furthermore it becomes handy when applying specific styles to certain posts that are not required by the rest of the site. Just enclose the style definitions in the style tags, save it in a file and include it in the specific post using WP Include File. Hence you save on bandwidth and load times by not loading unnecessary style definitions where they are not needed.

Invoking WP Include File using the Shortcode within the tinyMCE

WP Include File can be invoked using the Shortcode [include]. The Shortcode accepts four attributes: file, path, masterpath and variables. It will include the contents of the specified file at the location the Shortcode is placed within the post content. For a full explanation of the implementation read the Help page under the WP Include File Options once the plugin is activated or visit WP Include File's Home

Features

  • Include any PHP file in your post/content.
  • Define your own custom directory path (new in 3.1), thus, making the same file available to multiple sites on your server.
  • Pass data to the included file via a query, making them available in the global $_GET variable (new in 3.1).
  • Pass variables to the included file (new in 3.1).
  • Advanced form security, nonce and whitelist registration of option variable to be written in the database.
  • Options stored as one array in the database to minimize database cluster.
  • Unregistration of option variable from whitelist on deactivation.
  • On uninstall option array is removed from the database. No trail left behind.
  • Functional and user-friendly options page.
  • Help page build-in.

Requires: 2.8 or higher
Compatible up to: 3.1.4
Last Updated: 2011-2-19
Downloads: 11,875

Ratings

4 stars
4.9 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
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
50,2,1
100,1,1
100,1,1
100,1,1