After I started using WordPress I quickly realized that there is often need to incorporate snippets of text on posts or pages. I could of course just use a link to another page, but for certain things I liked the immediacy of inline inclusion better. I wrote an extremely simple WordPress plug-in that will pull in any page referred to by its ID.
Once the plug-in is enabled, you can use any of the following formats:
<toInclude id=xxx/>
<toInclude id=′xxx′/>
<toInclude id=″xxx″/>
<toInclude>xxx</toInclude>
where xxx is the ID of the post or page you want to be included. Only the body of the post or page is included – neither the title nor any of the metadata is included. In fact, this very post uses the plug-in to pull in the plug-in installation instructions below.
| Supported Platforms: | WordPress 2.x |
| Tested Platforms: | WordPress 2.x |
| Download Link: |
Installation Instructions
- Download the ZIP file containing the plug-in
- Unzip the ZIP file
- Upload the plug-in file(s) to your WordPress site's plug-in directory, typically
/wp-content/plugins/ - Navigate to the WordPress Site Admin pages, Plugins tab
- Locate the plug-in in the list and under Action column select
Activate