[wp-hackers] Fix for is_home() in combination with custom posttype?

Philip M. Hofer (Frumph) philip at frumph.net
Tue Nov 9 16:24:31 UTC 2010


^ well alrightey ;) - thats good to know cause i've been having to use this 
other method; will rewrite some things now



----- Original Message ----- 
From: "scribu" <mail at scribu.net>
To: <wp-hackers at lists.automattic.com>
Sent: Tuesday, November 09, 2010 8:14 AM
Subject: Re: [wp-hackers] Fix for is_home() in combination with custom 
posttype?


> On Tue, Nov 9, 2010 at 6:12 PM, Philip M. Hofer (Frumph)
> <philip at frumph.net>wrote:
>
>> query_posts is doing it
>>
>> You should use a different method for what your trying to accomplish, as 
>> in
>> the loop that uses the query,  me?  I use some custom functions I wrote 
>> that
>> protect() and unprotect() the main wp_query while doing any other loops
>> within sections, i.e. custom post type sections
>>
>
> That's essentially what wp_resetpostdata() and wp_reset_query() do.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 




More information about the wp-hackers mailing list