Custom Post Type Works but Still Shows “Page Not Found”

I have a weird problem when creating custom post types. Everything works, the archive page shows the posts and the posts show their content, but for both the title of the site says, “Page not found.”

You can see an example at http://coachingforliteracy.org/events/.

Read More

I’ve flushed the permalinks, which is why the pages load their content, but there is still some disconnect. Any thoughts?

Related posts

1 comment

  1. Hopefully this will provide some answers to anyone who runs into a similar problem.

    I had copied/created a (poor) function in my functions.php file that was looking for specific templates and if they were not found it would set $wp_query->is_404 = TRUE and that was the cause of the problem.

    Of course, the higher-level answer is let WordPress work for you. If you structure your template files correctly, you don’t need to look for them yourself.

Comments are closed.