2011-10-15, 03:35:52
Hi,
You will be able to do this in 3.1 but as thats not released yet..
you can add the follwoing function to your themes functions.php
then just use get_content('pageslug');
hope it helps....
Mike.
You will be able to do this in 3.1 but as thats not released yet..
you can add the follwoing function to your themes functions.php
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 just use get_content('pageslug');
hope it helps....
Mike.