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:

November 11th, 2006 at 5:53 pm
I got the plugin and tried it on our WP 2.04 system (gotta upgrade to 2.05…). It’s great! I wrote a Post in the “classic” editor with some HTML p and /p tags in the body. Underneath the editing window, I added a Custom Field with name mime_type and value text/html. When I saved the Post, opened it in a new browser window, and used the browser’s View Source command, I saw exactly the HTML I’d input — the same line breaks and everything. Excellent.
I’m still having some trouble, though. I want to use HTML FORM code that makes a Google search box. When I paste the code into the WordPress classic editor, then click “Save and Continue Editing”, I see the search box rendered correctly in the preview area at the bottom of the editor page… but the browser’s spinner keeps spinning, as if the server isn’t done sending the HTML to me. And I can’t open other windows from the WordPress server either. If I delete that search-window code and save the Post, things get back to normal.
I’m new at WordPress, so I’d really appreciate any suggestions on tracking this down: what else in the HTML (which works on a non-WordPress server) could be wedging WordPress?
Thanks,
Jerry
November 12th, 2006 at 12:56 am
Hi Jerry, can you still view your blog when this happens?
This could happen when
- When Wordpress tries to ping the search URL, which obviously doesn’t work.
- When pingomatic (or your other ping URLs) are down.
- Your google code tries to access some JavaScript or whatever that is slow to load.
I’d say WP tries to ping the google search URL (you can disable that in Options). But that shouldn’t hang your whole server, just the save of the post. And in this case your post has already been saved, pinging happens after that, so you should be able to access your last modification in your blog without problems.
March 4th, 2007 at 1:49 am
I could not get your Mime plugin to work with WP 2.1 successfully, so being familiar in working with postmeta, I changed a few lines of code to utilize the available WP functions for retrieving postmeta rather than using the method your function used and I was able to get the plugin to work perfectly.
I’ve plopped my revised source of your Mime plugin on the Slexy pastebin. Hope this helps someone out…
http://slexy.org/paste/1641
April 29th, 2007 at 8:44 pm
I have desperately tried to record Rolex Three Day Event today but it keeps saying I do not have a Mime type application/x-m player2. I have spent hours on the interneet trying to figure out what is a plug in and how do I do it on a MAC OS X Any straight forward explanation would be marvelous
April 30th, 2007 at 6:05 am
A plugin as used on these pages here is a extension for Wordpress, which is a blogging software, which is the foundation of this site.
A plugin in the general sense is any extension or add-on to an existing software. So this term isn’t of much use itself. It becomes concrete when you also mention the specific software it is a plugin for, like a “firefox plugin” or “wordpress plugin”.
October 31st, 2007 at 8:04 pm
“You just have to add a meta, ‘mime_type’ with value of ‘text/html’”
What it’s mean??
Add in post or header in .html file?
October 31st, 2007 at 8:08 pm
@Rafal: You add a custom field named ‘mime_type’ with the content ‘text/html’ to your post.
October 31st, 2007 at 9:26 pm
Hello again:)
.. English is not my native language (so) I still dont understand, I know html and I only know tag:
” ”
-but it is not this probably. Please write a example..
November 1st, 2007 at 7:57 am
@Rafal: I have included a screen shot, please see above.
October 5th, 2008 at 12:34 pm
Hello ! How can i install mime_type.phps with wordpress ?