2011-07-06, 00:19:01
An easier option would be to create your main page.
Then create 3 child pages for each of the columns.
Add the following to your template functions.php file
Then in your template just add 3 of the following in each of the columns, replacing $page with your sub-page names.
That way the client just updates the 3 sub pages.
Edit: in version 3.1+ you can forget about the function and just use the inbuilt caching/indexing.
Then create 3 child pages for each of the columns.
Add the following to your template functions.php file
Code:
function get_content($page){
$path = "data/pages";
$thisfile = @file_get_contents('data/pages/'.$page.'.xml');
$data = simplexml_load_string($thisfile);
echo stripslashes(htmlspecialchars_decode($data->content, ENT_QUOTES));;
}
Then in your template just add 3 of the following in each of the columns, replacing $page with your sub-page names.
Code:
<?php get_content($page); ?>
That way the client just updates the 3 sub pages.
Edit: in version 3.1+ you can forget about the function and just use the inbuilt caching/indexing.
Code:
<?php getPageContent($page); ?>