One of the recommende plugins in the Action Sheets is Exec-PHP - a plugin which allows you to execute scripts in your posts/pages (though only at the admin level!)
I activated this one to allow an include page command written in PHP that comes from my Word Site Builder word cloud script. New problem…
Even though I turned off the default rich editor in WordPress, the page displayed all wrong. The reason for this is because WordPress uses a filter which wraps paragraph tags around lines that are separated by an empty line. (This is executed by the filter_functions.php file in the wp-includes folder.)
So when the page included by the php script has empty lines in its source code, you are faced with a sudden new lay-out. In this case a word cloud with all of the words on their own line…
The solution to this problem is to install the Mime plugin, which will tell the filter to mind its own business and leave all your post/page coding as is.
The documentation for this plugin is very minimal. You need to copy the php code from the site and create your own file (which I named mime.php myself, but that doesn’t seem to make that much difference). Upload this to wp-content/plugins folder and activate it from the plugin tab in your admin panel. Most people manage to figure out this part by themselves. The confusion starts with how to use the plugin…
Basically it seems to require 2 steps:
-
Turn off the rich text editor first. You can do this from within your user profile.
-
When you write a post which needs to be taken literally, just put all your code in like you normally would. Then scroll down to where it says ‘Custom Fields’ (click the + sign to unfold it if necessary). The first time you use the plugin, enter a new key field named mime_type and give it the value text/html. (The second time you use the plugin you can select the key name from the dropdown menu.)
After installing the mime.php plugin in addition to exec.php my word clouds are displaying beautifully!
Tag: blog, delivery mechanism, plugins, wesite elements, WordPress
Super Affiliates Handbook
Search Feast
Domains-R-Us Hosting
Instant Niche Emails
The Family Jewels
Thin Electrons
|












