WP Include File
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 three attributes: file
, path
and masterpath
. 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
- 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.
Download
Latest version: Download WP Include File v1.9.12.22 [zip]
Installation
- Upload
wp-include-file.zip
archive to the/wp-content/plugins/
directory and unzip it. It will create a directorywp-include-file
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the WP Include File Options page and set the paths
- Read the Help page to understand the functionality and implementation
- Use the Shortcode
[include file="AnyFile.php"]
in the tinyMCE to include any file in the post content
FAQ
Q. How can I use the WP Include File plugin
A. Take a moment to read the Help page under the WP Include File Options once tha plugin is activated. Everything should be clear then. You can also refer to WP Include File’s Home
Q. I found a bug! I have a suggestion!
A. You can report all bugs or leave suggestions at WP Include File’s Home
Changelog
1.9.10.23
- Enhnaced the security for the back-end and saving options to the database.
- Differentiated and added the option for the Site Root directory and WordPress Installation directory paths.
- Tested and confirmed compatibility with WordPress 2.8.5 .
1.9.10.17
- First public release of WP Include File.