I have a page with the slug blog. Mysite.com/blog correctly renders from the template file page-blog.php. However, it does not execute footer code from my theme that's conditioned on is_page('blog'), nor does it have an "Edit Page" link in the Admin bar.
I also have a custom post type called blog, but this page doesn't execute code for is_post_type_archive('blog') either. In the admin bar, there is no "Edit Category" link or "Edit [Anything else]".
This is the info the WP Debug plugin gives me when I load the page:
Request:
blog
Query String:
pagename=blog
Matched Rewrite Rule:
(blog)(/[0-9]+)?/?$
Matched Rewrite Query:
pagename=blog&page=
What could be the problem?
var_dump($GLOBALS['wp_query']). – kaiser Aug 23 '11 at 17:06query_postswithoutwp_reset_query? – Chris_O Aug 23 '11 at 18:31