I'm developing a Custom Post Type plugin, which works fine in dev. Now that I've moved it to production, I'm getting a 404 when I try to display the template for the CPT.
So, two questions:
1- Is there some mechanism to determine the path WP took to get through the hierarchy?
2- Why wouldn't it just give me the single or index page?
I've dumped $wp_query and a stacktrace at the end of the 404. Here's part of what I found:
[query] => Array ( [page] => [pagename] => refletters/proximity ) [request] => SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND (wp_posts.ID = '0') AND wp_posts.post_type = 'page' ORDER BY wp_posts.post_date DESC [posts] => Array ( ) [queried_object] => [queried_object_id] => 0
And the stack trace:
2013-04-27 22:16:41 - 220.127.116.11 - TRACE - index.php - 404.php - wordpress/wp-content/themes/notoriousconsultant/404.php - aaLog->logtrace wordpress/wp-includes/template-loader.php - include wordpress/wp-blog-header.php - require_once wordpress/index.php - require
Thanks for your help.