Tutorials

How to unpublish a post or page in WordPress

This tutorial contains affiliate links. If you sign up through them, I may earn a commission at no extra cost to you.

Sometimes a post or a page needs to come down without being deleted. Maybe it’s out of date and you want to rewrite it, an offer has ended, or you published something a little too early. Deleting it works, but then the content is gone. Unpublishing takes it off your site and keeps it safe in the dashboard, ready to come back whenever you want.

In this tutorial, we’ll unpublish a single post or page, unpublish several at once, and set one to unpublish itself on a date you choose with the aid of a plugin. At the end, there are a few pointers for when it’s the whole site you want to take offline.

Unpublish a post or a page

  1. Open the post or page in the editor.
  2. In the “Post” or “Page” tab of the settings sidebar, click the status next to “Status”. It says “Published”.
  3. Choose “Draft”.
  4. Click “Save”.

The post is now a draft again. It’s gone from your site, your blog page, your RSS feed and your sitemap, but everything in it is kept, and you can publish it again just like a new post.

Draft or private?

The same list has another option worth knowing about: “Private”. A private post is still published, but only logged-in administrators and editors can see it. Everyone else gets a “page not found” error.

Pick “Draft” if you’re taking the post down to work on it, or don’t want anyone to see it. Pick “Private” if you want to keep it readable for yourself and other editors on the site, like an internal page you still use. If you want to keep the old version online while you rewrite it, duplicate the post or page and work on the copy instead.

Once a post is unpublished, its address shows a “page not found” error, and search engines remove it from their results after a while. Links to it from your other posts will lead to that error too, so update or remove them.

If the post has been replaced by a newer one, a redirect is usually better than unpublishing it. That sends both visitors and search engines on to the new post, instead of to an error page.

Unpublish several posts at once

To unpublish a lot of posts, you don’t have to open them one by one:

  1. Go to “Posts” → “All Posts”, or “Pages” → “All Pages”.
  2. Check the box next to each post you want to unpublish.
  3. Choose “Bulk edit” from the “Bulk actions” menu and click “Apply”.
  4. Set “Status” to “Draft”, or “Private”.
  5. Click “Update”.

For a single post, “Quick Edit” below its title in the list does the same thing, without opening the editor. There, “Private” is a checkbox next to the “Password” field instead of a status. For more on changing many posts at once, see how to bulk edit posts in WordPress.

Unpublish a post on a schedule

WordPress can publish a post on a date you choose, but it can’t unpublish one. The feature was suggested back in 2009, and the ticket was closed as “wontfix” a few years later. The thinking was that it’s not a common enough need, and that a plugin fits better.

The plugin for it is PublishPress Future, which started out as Post Expirator. It’s free, and the paid version adds more advanced workflows you won’t need for this.

  1. Go to “Plugins” → “Add Plugin”, search for “PublishPress Future”, and install and activate it.
  2. Open the post or page you want to unpublish later.
  3. In the settings sidebar, open the “Future Actions” panel and check “Enable Future Action”.
  4. Leave “Action” set to “Change status”, pick the “New status” (“Draft” or “Private”), and set the time and date.
  5. Save the post.

When the date comes, the plugin changes the post for you. It can also move a post to the trash, delete it, or change its categories, if that suits you better.

The plugin relies on WP-Cron, WordPress’s built-in way of running scheduled tasks. WP-Cron only runs when someone visits your site, so on a quiet site, the change can happen later than the time you set.

What about the whole site?

WordPress has no single button for unpublishing an entire site, and what you should do depends on why you want it offline:

  • To keep it out of Google while you work on it, turn on “Discourage search engines from indexing this site”. Visitors can still see the site if they have the link. Here’s how to discourage search engines from indexing your WordPress site.
  • To hide it from everyone while you build it, use a “coming soon” or maintenance mode plugin, which shows a single page to visitors while you’re logged in. On WordPress.com, you can set the whole site to “Coming Soon” or “Private” in the “Site Visibility” section under “Settings” → “Reading”.
  • To take it down for good, export your content first under “Tools” → “Export”, so you can bring it back later if you change your mind.

Whatever the reason, unpublishing the posts and pages one by one is rarely the right way to do it. It leaves the rest of the site, like your archives and your home page, still online.

Published November 30, 2026