index.html generated from index.php in wordpress
-
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?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘index.html generated from index.php in wordpress’ is closed to new replies.