I need to check if a page is an archive or not, before my plugin does some URI manipulations. These manipulations only work before
wp but if I perform them first and then check
is_archive, the check will always return false.
How can I check
is_archive (or achieve the same end result) during a pre-
It would be great if we could pass
is_archive a postid to check, but it doesn't work that way.
EDIT: I realize perhaps I'm explaining myself poorly, as archives don't even HAVE postids, as far as I know. I just need some way to check if the current URI is an archive or not, before
EDIT: On further experimenting, it appears that my URI manipulations can't take place any later than
init, I think because by that point WP has already done its rewriting and such. So, I either need a way to check for an archive page status, within
init, or do URI rewriting after
init, either approach is fine with me as long as it gets the intended result.