[wp-hackers] Manually toggle is_archive

scribu scribu at gmail.com
Wed Nov 11 23:28:07 UTC 2009


I hope you were aware of this:

http://ryan.boren.me/2007/10/01/taxonomy-intersections-and-unions/


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:
>
> http://fullthrottledevelopment.com/create-a-wordpress-archive-for-posts-in-multiple-categories
>
> Glenn Ansley
> http://fullthrottledevelopment.com
>
> 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
> > 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
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
http://scribu.net


More information about the wp-hackers mailing list