My users create posts with links to future posts which are in Draft status. We use Post Name as our permalink structure.
Eg.
<a href="/future-draft-post">Here is our next fantastic post coming next week!</a>
Since they are logged in, our users click the links and are then redirected to the Drafts for editing. And as normal, when non-logged-in users click those links they get a nasty 404.
What I want is for non-logged-in users to click such links and be redirected to a custom page that says 'Coming Soon!'
How do I do that?
Two other optional features we would like.
Ideally, I would like to pass the scheduled publish date to the 'Coming Soon Page! (eg. 'Coming July 10, 2016!)
I would only like this behaviour for a certain category of posts. Other posts should redirect to a 404 as per usual.
So in addition to checking the status of the post we need a way to check the category and the publish date of the post in deciding whether to 404 or go to the custom page.