WordPress showing 404 page template for unpublished posts

When I open a URL that point to a post which is not published yet, wordpress shows a 404 page. But I want to show a meaningfull message to user that “this post is not published by admin, please contact admin to get it published”

How can I do this?

Read More

Edit: Is their any way i can get wordpress to run my single.php template instead of 404 template in my case?

Related posts

Leave a Reply

1 comment