[ad_1]
Hi everyone, as the headline said … I’d like to show an info text (could be static HTML via functions.php or so) if a planned post/page URL got opend. I don’t want show the 404.
Thanks.
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
Custom Post/Page template with static html. Change template to default when ready to show actual content.
**You could edit the 404.php for this:**
if ( get_post_status ( $ID ) == ‘future’ ) {
// your info text
} else {
// your 404 code
}
And then output the desired content inside the if-statement.