You are currently viewing WordPress Hide Page from Sitemap – Best Method 2026

WordPress Hide Page from Sitemap – Best Method 2026

Most WordPress sites have more than just a homepage — pages like About, Contact, and Services are pretty common. They help visitors learn what your site is all about. But sometimes, you may have pages you don’t want everyone to see. Maybe they’re only for certain users, or you want to keep them out of search engines.

The good news? WordPress gives you plenty of ways to hide or limit access to any page. Below are eight simple methods you can use to keep things private whenever you need to.

1. Set the Page to Private or Password-Protected

WordPress includes built-in visibility settings that let you hide a page right from the editor or Quick Edit. You can choose Private or Password-Protected.

WordPress Hide Page from Sitemap – Best Method 2026

Private pages

Only people with Administrator or Editor roles can see private pages once they’re logged in. Everyone else — even with the direct link — gets blocked. This is perfect for internal documents or team-only content.

To make a page private:

  1. Log in to your dashboard
  2. Go to Pages → All Pages
  3. Click Edit on the page
  4. In the right-hand sidebar, find Visibility
  5. Choose Private
  6. Click Update

Using Quick Edit:

  1. Go to Pages → All Pages
  2. Click Quick Edit next to the page
  3. Check the Private box
  4. Click Update

Password-protected pages

A password-protected page requires a password before anyone can view it. Unlike private pages, visitors don’t need to log in — they just enter the password you give them. This is ideal for client pages or private downloads.

To password-protect a page:

  1. Open the page in the editor
  2. In Status & Visibility, select Password Protected
  3. Enter a password
  4. Click Update

Using Quick Edit:

  1. Click Quick Edit
  2. Add your password in the Password field
  3. Click Update

Also Raed: How to Write Meta Descriptions That Drive Traffic – 2026

2. Save the Page as a Draft or Pending Review

Another easy option is to keep the page as a Draft. Draft pages aren’t visible to the public — only logged-in users can see them. You can also mark a page as Pending Review, which is useful if someone else needs to approve it before it goes live.

To save as Draft or Pending Review:

  1. Open the page
  2. In Status & Visibility, choose Draft or Pending Review
  3. Click Update

Using Quick Edit:

  1. Go to Pages → All Pages
  2. Click Quick Edit
  3. Change the Status
  4. Click Update

The page will disappear from the front end until you publish it again.

3. Use a Plugin to Manage Page Access

If you want more control, a plugin can give you advanced options — like restricting access by user role, membership level, or even specific conditions.

WordPress Hide Page from Sitemap – Best Method 2026

This is great for membership sites, client dashboards, and private content.

Popular access-control plugins:

  • Content Control — Restrict pages, posts, widgets, or blocks based on user roles or login status.
  • Ultimate Member — Manage user registration and profiles, with custom roles and directories.
  • WP-Members — Block content from logged-out users and customize registration forms.

4. Use CSS to Hide a Page from Visitors

If you don’t mind light coding, you can hide a page’s content using CSS. The page will still load if someone has the link, but nothing will appear on the screen.

Find your page ID:

  1. Open the page in your browser
  2. Right-click → Inspect
  3. Look for a class like page-id-## in the <body> tag
  4. Note the number

Also Read: The Ultimate Guide to SEO Keyword Research (Guide 2026)

Add the CSS:

Go to Appearance → Editor → Styles → Additional CSS and add:

body.page-id-## {
  display: none;
}

If your theme doesn’t support Additional CSS, you can use a plugin like Simple Custom CSS and JS.

5. Restrict Access with User Roles and Code

You can also hide pages using a bit of PHP in your functions.php file. For example, you can block non-admins from viewing a specific page.

Be careful — mistakes in this file can break your site. Using a plugin like Code Snippets is safer.

Sample code to allow only admins to view a page:

add_action('template_redirect', function() {
    if (is_page(##) && !current_user_can('administrator')) {
        wp_redirect(home_url());
        exit;
    }
});

Replace ## with your page ID.

6. Remove the Page from Navigation Menus

If you simply want to keep a page out of your site’s menus:

WordPress Hide Page from Sitemap – Best Method 2026
  1. Go to Appearance → Menus
  2. Select your menu
  3. Click the arrow next to the page
  4. Click Remove
  5. Save your menu

You can also use menu-building plugins like Max Mega Menu for more control.

7. Use an SEO Plugin to Hide Pages from Search Engines

If your goal is to keep the page out of Google, not hidden from users, an SEO plugin is perfect.

Using Yoast SEO:

  1. Install and activate Yoast
  2. Edit the page
  3. Scroll to the Yoast SEO box
  4. Open Advanced
  5. Set Allow search engines to show this page in search results? → No
  6. Optional: Set Should search engines follow links? → No
  7. Update the page

Plugins like Rank Math and All in One SEO offer similar settings.

8. Block Search Engines with robots.txt

You can also block search engines using your robots.txt file. This doesn’t remove already-indexed pages but prevents new crawling.

Add:

User-agent: *
Disallow: /your-page-slug/

You can edit robots.txt through FTP or with an SEO plugin.

Final Thoughts

There are many reasons to hide a WordPress page, and thankfully, just as many ways to do it. Choose the method that fits your goal — whether that’s keeping content private, unlisted, or out of search engines. You can even combine methods for extra control.

How Jetpack AI Assistant Helps

When you hide a page, you often do it so you can improve it before showing it to the world. Jetpack AI Assistant makes that easier by helping you:

  • Improve tone and clarity
  • Restructure sections
  • Rewrite tricky parts
  • Translate content
  • Summarize or expand ideas
  • Get quick suggestions as you work

If you already use Jetpack, the AI Assistant is right in your editor and ready to help you polish your hidden pages.

Leave a Reply