[wp-hackers] Manually toggle is_archive
scribu at gmail.com
Wed Nov 11 23:28:07 UTC 2009
I hope you were aware of this:
On Thu, Nov 12, 2009 at 12:26 AM, Glenn Ansley <glenn at glennansley.com>wrote:
> 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.
> ie: http://yourdomain.com/categories/cat-1+cat2+cat3
> If you have time to help me debug it, that would be awesome:
> Glenn Ansley
> On Wed, Nov 11, 2009 at 3:29 PM, Glenn Ansley <glenn at glennansley.com>
> > Hey all,
> > Is there a specific way I need to manually set $wp_query->is_archive to
> > 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
> > matter).
> > Any ideas? Thanks.
> > (sorry if this comes through twice. I always forget to change the from
> > email to the one registered with the list).
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers