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: http://svn.automattic.com/wordpress/trunk@2378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
894c4cc880
commit
9da4d0f021
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue