Thread Starter
Adam
(@panhead)
Once again, I answered my own question. I found Custom Field Template plugin that works perfect! The only problem is that there are no good instructions on how to use it. (FYI, I am using WP 2.9.1 with plugin version 1.5.5.)
http://wordpress.org/extend/plugins/custom-field-template/
Here are my basic, simple instructions on how to use Custom Field Template. Please let me know if this works for you!
Add to the “functions.php” file:
// Get Custom Field Template Values
function getCustomField($theField) {
global $post;
$block = get_post_meta($post->ID, $theField);
if($block){
foreach(($block) as $blocks) {
echo $blocks;
}
}
}
Set Up Template:
In WordPress: Settings > Custom Field Template
[Block #1]
type = textarea
rows = 8
tinyMCE = true
[Block #2]
type = textarea
rows = 8
tinyMCE = true
[Block #3]
type = textarea
rows = 8
tinyMCE = true
etc....
Delete “etc….” in Custom Field Template settings.
Call a content Area in page:
<?php
$block = get_post_meta($post->ID, 'Block #1');
foreach(($block) as $blocks) {
echo $blocks;
}
?>
Hope this helps someone!
Wish granted. The plug-in now allows up to 5 HTML blocks on posts and / or pages.