Is it possible to have different 404 templates based on the post_type?
So when page
is not found 404.php
will be used, when post
is not found 404-post.php
will be used.
Or alternative, I would like just to display different message when blog post (post_type=post
) is not found than when page is not found (post_type=page
).
Is there any hook I can use? Codex did not give me any usable hints on this.