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.

Author:the AmberPanther team (profile at wordpress.org)
WordPress version required:2.8
WordPress version tested:3.1.4
Plugin version:3.1
Added to WordPress repository:14-10-2009
Last updated:19-02-2011
Warning! This plugin has not 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.
Rating, %:98
Rated by:8
Plugin URI:http://www.amberpanther.com/contributions/wp-...
Total downloads:12 092
plugin download
Click to start download

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.