Empty Archives Returning 404
Is anyone else having this problem?
I’ve setup my custom post type with Custom Post Type UI. I’ve turned on rewriting, archiving, and given it a slug. Both individual posts and the archives page is working great.
EXCEPT, it looks like querying the archive page will result in a 404 if there are no posts of the type available. Note, this is not the ELSE on the loop that checks for have_posts() on the archive page…it’s not even getting that far. It’s returning the 404 page template as if the page can’t be found.
Is this a known bug? How do I load up an “empty” archive telling people to check back soon for more content? This particular instance is an event type, so if there aren’t events it shouldn’t result in a 404.
- The topic ‘Empty Archives Returning 404’ is closed to new replies.