[wp-testers] is_home problem

Kaf Oseo kaf at szub.net
Fri Sep 29 04:12:05 GMT 2006

Conrad - Conrad_Vanl wrote:
> Yes I am running a query_posts! I am running a query_posts in the index.php
> file b/c I want the index.php file to display only one category. Oh so when
> running query_posts it makes wordpress think that it's in archive page
> instead of the homepage? If so, is there a way I can get around it, like
> restating that index.php is indeed the home page?

After query_posts:

	$wp_query->is_category = false;
	$wp_query->is_archive = false;
	$wp_query->is_home = true;


More information about the wp-testers mailing list