Mime Type Plugin

The following is taken from an old page that was up before I switched all over. I have edited it and brought the rough plugin back:

Wordpress is really cool.

But what if you want to have “richer” content? Not just the text you type, but some fancy HTML or PHP stuff? Even if you just want HTML come across exactly as you designed it, the filtering mechanism (wpautop in particular) gets in the way.

So I decided to write a plugin that basically leaves content alone. You just have to add a meta, ‘mime_type’ with value of ‘text/html’ and your post won’t be filtered by wpautop.

I called this plugin Mime because I thought this fits somehow, and also leaves some potential for further enhancement. Well, it’s so small I should have called it ‘Basic’ or something like that :) The real answer for the name is that I’m using Wordpress in a PHP MVC engine as the CMS, and this engine is really capable of recognizing different mime types and interpreting them at run-time. E.g., you could even implement some Smarty interpretation.

If you have any ideas about some really cool mime stuff for this plugin, please let me know.

Here it is: mime_type.phps

This is how to set your mime type:

12 Responses to “Mime Type Plugin”

Leave a Reply


uberdose 2.0

L-l-look at you, hacker.