[wp-hackers] Manually toggle is_archive
glenn at glennansley.com
Wed Nov 11 22:26:00 UTC 2009
I got it working. It was a stupid error.
Semi-related, it was for a plugin that allows you to create archive
pages for posts in multiple categories.
If you have time to help me debug it, that would be awesome:
On Wed, Nov 11, 2009 at 3:29 PM, Glenn Ansley <glenn at glennansley.com> wrote:
> 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