Use is_single() and is_page() to determine if single and more should be set. http://mosquito.wordpress.org/view.php?id=969 Props: coffee2code

git-svn-id: https://develop.svn.wordpress.org/trunk@2378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-02-25 02:07:08 +00:00
parent ffad6205f9
commit b06afb7b33
1 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ $posts = query_posts($query_string);
// Extract updated query vars back into global namespace.
extract($wp_query->query_vars);
if (1 == count($posts)) {
if ( is_single() || is_page() ) {
$more = 1;
$single = 1;
}