{"id":141684,"date":"2023-03-22T11:32:15","date_gmt":"2023-03-22T16:32:15","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=141684"},"modified":"2024-06-25T18:58:49","modified_gmt":"2024-06-25T23:58:49","slug":"make-wordpress-page-private","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/","title":{"rendered":"How to Make a WordPress Private Page (3 Methods)"},"content":{"rendered":"\n<p>In WordPress, both pages and posts default to being accessible to the general public. This is usually fine, but there are often situations where you\u2019ll want to restrict access. There are various ways to make a WordPress page private, including with the internal tools in WordPress, by editing your theme, and with a plugin. <\/p>\n\n\n\n<p>The best method depends on exactly what you\u2019re trying to achieve. The tools in WordPress work very well if you want to make a private page that can only be viewed by site editors and administrators, or restrict access based on a password. <\/p>\n\n\n\n<p>Unfortunately, internal tools have their limits. You\u2019ll need to use another method if your goal is to restrict content to users who have logged in or to certain paid or unpaid membership levels.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">What is a Private Page? <\/h2>\n\n\n\n<p>A WordPress private page is just that: private. Most of the content on your site is accessible to the public, but a private page can only be accessed by certain people. A private post is essentially the same thing, but a <a href=\"https:\/\/wpengine.com\/resources\/wordpress-posts-vs-pages\/\" target=\"_blank\" rel=\"noreferrer noopener\">post instead of a page<\/a>. The methods outlined below work for both content types. <\/p>\n\n\n\n<p>There are at least three different ways to make your WordPress content private: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Changing the visibility. <\/li>\n\n\n\n<li>Protecting it with a password. <\/li>\n\n\n\n<li>Restricting access based on user level. <\/li>\n<\/ul>\n\n\n\n<p>The exact method you use depends on what you\u2019re trying to achieve. You can use the built-in tools in WordPress to change any post or page on your site from public to private and back again with the flick of a single toggle. Password-protected WordPress posts and pages are just as easy to set up and ensure only users with the password can view the content. Unfortunately, both of these methods are limited in scope. <\/p>\n\n\n\n<p>In the case of WordPress private pages and posts, only users with editor or admin access can view a post or page set to \u201cPrivate\u201d visibility. There\u2019s no way to give access to other user levels, short of making it public or putting a password on it. <\/p>\n\n\n\n<p>Password protecting each and every single piece of content you want to make private is possible, but it comes at the cost of a poor user experience. <\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a Private Page or Post<\/h3>\n\n\n\n<p>The first step is to create a new page by selecting \u201cPages\u201d in your WordPress admin menu and clicking \u201cAdd New.\u201d You can also change the privacy of an existing page by selecting it and then following the rest of this process.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"313\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/WP-private-page1.png\" alt=\"The main &quot;Pages&quot; page via WordPress\" class=\"wp-image-141685\"\/><\/figure>\n\n\n\n<p>Next, find the \u201cSummary\u201d section on the right side of your editing window and click \u201cVisibility.\u201d This opens a modal that lets you select from three options: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Public: The default setting for all pages and posts. <\/li>\n\n\n\n<li>Private: This will restrict visibility to site admins and editors. <\/li>\n\n\n\n<li>Password protected: This setting limits visibility to visitors who enter the correct password.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"313\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/WP-private-page2.png\" alt=\"A private page via WordPress \" class=\"wp-image-141686\"\/><\/figure>\n\n\n\n<p>In general, you\u2019re better off using another technique to manage user access to content, but there are situations where password protection gets the job done. It also has the dual advantages of being free and very easy to set up. Just click \u201cPassword protected\u201d, enter your password, and you\u2019re done.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"266\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/WP-private-page3.png\" alt=\"A password-protected page via WordPress \" class=\"wp-image-141687\"\/><\/figure>\n\n\n\n<p>The major drawback is that the passwords are only secure as your user base. The built-in tools let you set one password for the page or post. There\u2019s no way to randomly generate them on a per-user basis and no way to prevent users from sharing them. You can change them frequently, but that\u2019s more work on your end and will only make the user experience worse. <\/p>\n\n\n\n<p>\u201cGated\u201d content is one of the most popular reasons to make parts of your WordPress site private. Typically this means restricting those posts, pages, and downloads to registered users, something the internal tools will not do. <\/p>\n\n\n\n<p>In the next section, we\u2019ll discuss how to restrict access to content with a child theme, as well as take a look at some of the available plugins for making private pages and posts based on user access. <\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Restricting Access Based on Users <\/h2>\n\n\n\n<p>The WordPress internal tools have their uses, but they don\u2019t give you a way to ensure only logged-in users can access a post or page. For that, we recommend either modifying a child theme\u2019s <code>functions.php<\/code> file or using a plugin. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Make Content Private With a Child Theme <\/h3>\n\n\n\n<p>It\u2019s possible to restrict user access by making modifications to the <code>functions.php<\/code> file in your theme. The file itself is located in <code>wp-content\/themes\/name_of_theme<\/code>. <\/p>\n\n\n\n<p>The first step in using this technique is to <a href=\"https:\/\/wpengine.com\/resources\/create-child-theme-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">create a child theme<\/a>. We don\u2019t recommend making changes directly to your parent theme, as a single mistake can have wide-reaching impacts on your site\u2019s presentation. In addition, at some point that theme will likely receive an update. Any modifications you\u2019ve made to your parent theme would be wiped out by the update. <\/p>\n\n\n\n<p>Once you have your child theme created, the next step is to add some custom code to its <code>functions.php<\/code> file. <\/p>\n\n\n\n<p>This solution will allow logged in users to access the post or page, while taking users who are not logged in to a login page. <\/p>\n\n\n\n<p>The code below is constructed of the following elements: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <code>template_redirect<\/code> hook: This executes just before WordPress selects the template to load. <\/li>\n\n\n\n<li>A <code>get_queried_object_id()<\/code> function: This reads the ID of the user\u2019s current page. <\/li>\n\n\n\n<li>An array of page IDs: This will tell the function which pages to restrict to logged in users. <\/li>\n<\/ul>\n\n\n\n<p>The example below uses an array named <code>private_pages<\/code>, set to restrict page IDs 2, 15, and 17. You will need to insert your own page IDs here for the code to work. You will also need to replace \u201cLINK_TO_LOGIN_PAGE\u201d with a link to your login or registration page.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~~~\nif( !function_exists('private_logged_in_users') ):\n \n    add_action( 'template_redirect', 'private_logged_in_users' );\n \n    function private_logged_in_users(){\n         \n        \/* Reads the current page ID *\/\n        $page_id = get_queried_object_id();\n \n        \/* List of IDs restricted to logged-in users *\/\n        $private_pages = &#091; 2,15,17, ];\n      \n \n        if( ( !empty($private_pages) &amp;&amp; in_array($page_id, $private_pages) ) &amp;&amp; !is_user_logged_in() ):\n\n\n \n            wp_die('To view this content, please &lt;a href=\"LINK_TO_LOGIN_PAGE\" target=\"_blank\"&gt;log in or register.&lt;\/a&gt;');\n            return;\n            exit;\n \n        endif;\n    }\n \nendif;\n~~~\n<\/code><\/pre>\n\n\n\n<p>One of the disadvantages of this technique is that the posts and pages you want to make private probably aren\u2019t static. Every time you add a new piece of gated content, you will have to update the page IDs in your array. <\/p>\n\n\n\n<p>In addition, this doesn\u2019t allow you to restrict access based on membership levels, paid memberships, etc. As long as a user is logged in, they will see the content. <\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Making WordPress Pages Private With a Plugin <\/h3>\n\n\n\n<p>There are advantages to managing private pages and posts with a plugin. They usually offer capabilities beyond simply making a post inaccessible based on user level, allowing you to restrict content based on your needs.<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/en-ca.wordpress.org\/plugins\/restrict-content\/\" target=\"_blank\" rel=\"noreferrer noopener\">Restrict Content<\/a><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"166\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/Restrict-Content.png\" alt=\"Restrict Content logo\" class=\"wp-image-141688\"\/><\/figure>\n\n\n\n<p>This membership plugin by Stellaris promises \u201cfull control over who can and cannot view content on your WordPress site.\u201d The free version allows you to create multiple membership levels and restrict access to posts, pages, media, custom post types, and API requests. A free Stripe add on is available that allows you to collect debit and credit card payments. <\/p>\n\n\n\n<p>Once you\u2019ve installed and activated the plugin, you can restrict any piece of content via a dropdown menu in the content editing window.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"237\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/Restrict-Content2.png\" alt=\"Restrict Content plugin dropdown menu\" class=\"wp-image-141689\"\/><\/figure>\n\n\n\n<p>There are a lot of options available to restrict access to your content, including limiting it to members of any access level, members of any paid level, and members of a specific level.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong><a href=\"https:\/\/wordpress.org\/plugins\/anonymous-restricted-content\/\" target=\"_blank\" rel=\"noreferrer noopener\">Anonymous Restrict Content<\/a><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"166\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/Anonymous-Restrict-Content.jpeg\" alt=\"Anonymous Restrict Content logo\" class=\"wp-image-141690\"\/><\/figure>\n\n\n\n<p>This plugin offers a simple way to restrict content to authorized users. After installation and activation, Anonymous Restricted Content adds \u201cRestricted Content\u201d to the Settings menu in your WordPress dashboard. From there, you simply fill in a few details regarding the page you want users redirected to and the message you want shown on your login page.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"339\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/Anonymous-Restrict-Content2.png\" alt=\"Anonymous Restrict Content plugin Settings page\" class=\"wp-image-141691\"\/><\/figure>\n\n\n\n<p>Anonymous Restricted Content lets you restrict content as a bulk action. Simply go to the Posts or Pages section of your WordPress site, check the content items you want to restrict, and select \u201cRestrict for Anonymous\u201d from the bulk actions dropdown menu. <\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/content-control\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Content Control<\/strong><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-1024x328.png\" alt=\"Content Control plugin logo\" class=\"wp-image-141692\" width=\"768\" height=\"246\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-1024x328.png 1024w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-540x173.png 540w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-768x246.png 768w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-1536x493.png 1536w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM-1500x481.png 1500w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/Screen-Shot-2023-03-21-at-11.40.43-AM.png 1852w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>This plugin allows you to restrict access to pages and posts to logged-in users, by specific user roles, and to logged-out users. Content Control gives you the ability to restrict certain parts of your content with shortcodes. In addition, you can use the plugin to control the visibility of sidebar and footer widgets by user and access level. <\/p>\n\n\n\n<p>After installation and activation, the plugin adds \u201cContent Control\u201d to your Settings menu. From there, clicking \u201cAdd a Restriction\u201d will open the Restriction Editor, allowing you to tailor your restricted content to suit your needs. <\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator aligncenter has-alpha-channel-opacity\"\/>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion <\/h2>\n\n\n\n<p>WordPress offers different routes to making private posts and pages. The best method to use depends on your goals. The WordPress internal tools are very easy to use and work flawlessly, but they\u2019re limited to password protection or only letting admins and editors view the content. <\/p>\n\n\n\n<p>The method we\u2019ve outlined for creating private posts and pages with a child theme also has limits. It requires manually updating the page ID array in your <code>functions.php<\/code> file every time you add a new piece of private content, and it only restricts non-logged in users from viewing the content, with no way to restrict the content based on access level. There are ways around these limitations, but they require more advanced coding skills. <\/p>\n\n\n\n<p>The right plugin can help you to mark pages, posts, and other pieces of content as private, but also restrict access based on more stringent requirements than simply being logged in: access level, paid memberships, and so on. Depending on exactly what your goals are, a plugin may be the best and easiest way to make certain WordPress pages private and restrict access to your content. <\/p>\n\n\n\n<p>Managed hosting with WP Engine gives you even greater control over exactly who can access your site. Using the <a href=\"https:\/\/wpengine.com\/support\/web-rules-engine\/\" target=\"_blank\" rel=\"noreferrer noopener\">Web Rules Engine<\/a>, you can prevent direct access to private files, restrict access from specific countries or regions, redirect pages, and much more. <\/p>\n\n\n\n<p><strong><a href=\"https:\/\/wpengine.com\/plans\/\" target=\"_blank\" rel=\"noreferrer noopener\">Find out more<\/a> about industry-leading WordPress hosting, including award-winning 24\/7\/365 support at <a href=\"https:\/\/wpengine.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WordPress, both pages and posts default to being accessible to the general public. This is usually fine, but there are often situations where you\u2019ll want to restrict access. There are various ways to make a WordPress page private, including with the internal tools in WordPress, by editing your theme, and with a plugin. The<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":414,"featured_media":141694,"template":"","resource-topic":[909,901],"resource-role":[895,1397,896],"resource-type":[916],"class_list":["post-141684","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Make a WordPress Private Page (3 Methods)<\/title>\n<meta name=\"description\" content=\"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make a WordPress Private Page (3 Methods)\" \/>\n<meta property=\"og:description\" content=\"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-25T23:58:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/WP-private-page_1200x627.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"627\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/WP-private-page_1200x627.png\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/\",\"name\":\"How to Make a WordPress Private Page (3 Methods)\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2023-03-22T16:32:15+00:00\",\"dateModified\":\"2024-06-25T23:58:49+00:00\",\"description\":\"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Make a WordPress Private Page (3 Methods)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/579a2f6ae3f812931a823d14ccfb8c4b\",\"name\":\"Mike Davey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c7b5657436bc691685001a6b303ba37795ae34ecb50b824ca7c6b0043cd1973a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c7b5657436bc691685001a6b303ba37795ae34ecb50b824ca7c6b0043cd1973a?s=96&d=mm&r=g\",\"caption\":\"Mike Davey\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Make a WordPress Private Page (3 Methods)","description":"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Make a WordPress Private Page (3 Methods)","og_description":"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2024-06-25T23:58:49+00:00","og_image":[{"width":1200,"height":627,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/WP-private-page_1200x627.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/WP-private-page_1200x627.png","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/","name":"How to Make a WordPress Private Page (3 Methods)","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2023-03-22T16:32:15+00:00","dateModified":"2024-06-25T23:58:49+00:00","description":"Find out how to make your WordPress pages private and restrict access to certain content and ensure only authorized users can view specific pages.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/make-wordpress-page-private\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How to Make a WordPress Private Page (3 Methods)"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/579a2f6ae3f812931a823d14ccfb8c4b","name":"Mike Davey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c7b5657436bc691685001a6b303ba37795ae34ecb50b824ca7c6b0043cd1973a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c7b5657436bc691685001a6b303ba37795ae34ecb50b824ca7c6b0043cd1973a?s=96&d=mm&r=g","caption":"Mike Davey"}}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2023\/03\/WP-private-page_343x245.png","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Agency, Designer, Developer","topic":"<strong>Topics:<\/strong> Security, WordPress","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/141684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/414"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/141694"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=141684"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=141684"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=141684"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=141684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}