<!–more–> working in archive.php but not in index.php
My index.php and archive.php are almost identical. In the crucial place within the loop both contain:
the_content('Read the rest of this entry »')
In pages that use archive.php posts which contain
<!--more-->do what is expected — the text up to the more tag is include followed by a link that says “Read the rest of this entry »;”.
Now I have a custom home page set by creating a home.php file. For the blog I have created a page called News which uses a custom template called news.php which contains just this:
Template Name: News
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("paged=$paged&cat=-0"); //gets all posts
load_template( TEMPLATEPATH . '/index.php'); //loads index
Everything about this seems to work except that the more tag no longer does anything, instead the whole of posts containing a more tag is printed the News page.
Does anyone have an idea why this should be so?
Thanks in advance.
- The topic ‘<!–more–> working in archive.php but not in index.php’ is closed to new replies.