<!–more–> fails when index loads from template
-
I want a static front page, so am loading index.php from within a blog template as described in the codex:
<?php
/*
Template Name: Blog
*/
?><?php query_posts('cat=-0'); //gets all posts
load_template( TEMPLATEPATH . '/index.php'); //loads index
?>I have not set the static home page yet.
When I look at index.php directly it displays as expected – items stop at “more”.
But when I load the blog.php page I get the complete text of every post. How can I prevent this?
- The topic ‘<!–more–> fails when index loads from template’ is closed to new replies.