Instant Content Archive Format

The content archives used by instant content are simply zip files.

I create a directory and create a text file called “title”. This file has one line and that is the Heading used on the parent page created by the plugin when adding pages. The titles text file is also used to create a WordPress Category for posts, so it serves double duty.

I then start creating text files. These can have any name. The zip file will store them in alphabetical order so take that into account. I do not use the file name for anything, so there are no restraints.

The contents of these content files is the one line with the post or page title followed by the content. I break the file into these two parts. Line one goes to the title and the rest of the lines go to the content.

WordPress line breaks in the content for each line in the file. If the content has html instead of plain text, you may want to get rid of all the new lines and make the content one long line. This is important for javascript and embeded objects.

When you are done use your favorite zip software (I like 7zip) to compress the contents of the directory to a zip file. Name the zip file something that you will remember.

The zip file should be uploaded to the WordPress wp_content/plugins/instant-content-plugin directory on your host. The next time you click on the “instant page content” or “instant post content” links on the admin page you will see the new content archive in the drop down list.

I had a problem where the first line did not break out from the html on one file only. This was because I did not use NotePad to edit the files and the editor only put a carriage return in to the file and not a new line. If you have this problem try opening the file with windows notepad, making a change, and saving the file.

Users have had problems where the title file was saved with a .txt extension, but they couldn’t see it because windows is hiding extensions. I will make a change so that the title file can use either a .txt file or a file without an extension.

3 Responses to “Instant Content Archive Format”

  1. Keith says:

    I use notepad++ for all plugin development. I think it is a great editor.

    Keith

  2. Very nice plugin. Worked a a treat. If I were to improve it… I’d add the ability to add tags and categories and also SEO stuff like titles, descriptions and key words. I also used Notepad++ to edit rather than standard windows note pad. It has Much better find and replace features.

  3. cipoi says:

    Know issue

Leave a Reply