Including Inline Pages in WordPress

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: include.zip (0.51KB)

Installation Instructions

  1. Download the ZIP file containing the plug-in
  2. Unzip the ZIP file
  3. Upload the plug-in file(s) to your WordPress site's plug-in directory, typically

    /wp-content/plugins/

  4. Navigate to the WordPress Site Admin pages, Plugins tab
  5. Locate the plug-in in the list and under Action column select Activate

Leave a Reply

You must be logged in to post a comment.