hello,
1. Default index.php in wordpress looks like this:
<?
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
2. I have a file called index_make.php which looks like this:
<?
ob_start();
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
$plik=fopen('index.html', 'w');
fwrite($plik, ob_get_contents());
fclose($plik);
ob_end_flush();
?>
3. index.html is a generated, cached file by index_make.php.
PROBLEM IS:
Why index.html has no posts?
Everything is well generateg without posts.. why?
Who have any idea how to solve this problem?