[wp-hackers] Manually toggle is_archive

Glenn Ansley glenn at glennansley.com
Wed Nov 11 20:29:07 UTC 2009

Hey all,
Is there a specific way I need to manually set $wp_query->is_archive to true?
I've tried to global $wp_query and set it to true at several points in
the process of loading, but it is either getting overwritten or
hitting the wrong object.
I can get it to stick.

I can even hook into template redirect and unset
$wp_query->is_archive. I just can't force it to be 1 (or 0 for that

Any ideas? Thanks.

(sorry if this comes through twice. I always forget to change the from
email to the one registered with the list).

More information about the wp-hackers mailing list