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

scribu mail at scribu.net
Tue Nov 9 16:14:56 UTC 2010


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.


More information about the wp-hackers mailing list