[wp-testers] is_home problem
Conrad - Conrad_Vanl
conrad_vanl at convandesign.com
Fri Sep 29 06:20:15 GMT 2006
Yup, this fixed my problem. Can't believe I didn't think of that earlier.
Thanks!
-----Original Message-----
From: wp-testers-bounces at lists.automattic.com
[mailto:wp-testers-bounces at lists.automattic.com] On Behalf Of Kaf Oseo
Sent: Thursday, September 28, 2006 11:12 PM
To: wp-testers at lists.automattic.com
Subject: Re: [wp-testers] is_home problem
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;
-Kaf
_______________________________________________
wp-testers mailing list
wp-testers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers
More information about the wp-testers
mailing list