{"id":30468,"date":"2017-11-13T14:09:39","date_gmt":"2017-11-13T14:09:39","guid":{"rendered":"https:\/\/wpblog.com\/?p=30468"},"modified":"2017-11-13T14:09:39","modified_gmt":"2017-11-13T14:09:39","slug":"restrict-content-wordpress","status":"publish","type":"post","link":"https:\/\/wpblog.com\/restrict-content-wordpress\/","title":{"rendered":"How To Restrict Content On Your WordPress Website"},"content":{"rendered":"<p>Content is one of the most important pillars of success for any website. However, sometimes you need to restrict content for some specific visitors on your website. Let\u2019s say you want to display a piece of content for your subscribers only, in that case, you would need to restrict that content so that it is not displayed to anyone but your subscribers.<\/p>\n<p>So how can you restrict content on your WordPress website? There are many plugins that offer this specific functionality. We will choose <a href=\"https:\/\/wedevs.com\/wp-user-frontend-pro\/?utm_source=blog&amp;utm_medium=referral&amp;utm_campaign=post&amp;utm_content=aion\" rel=\"nofollow\">WP User Frontend Pro<\/a> to guide you through the process of restricting content.<\/p>\n<h2>Restrict Content Using WP User Frontend Pro<\/h2>\n<p>WP User Frontend Pro is a content restricting plugin from weDevs. To get started, you first need to install the plugin on your WordPress website.<\/p>\n<p>After you have installed and activated the plugin, select \u201cAdd New\u201d from the Posts option. Scroll down on the editor window and you will see three content restriction options:<\/p>\n<ul>\n<li>Display to Everyone<\/li>\n<li>Display to Logged in users only<\/li>\n<li>Display to Subscription users only<\/li>\n<\/ul>\n<h2>Display To Everyone<\/h2>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-30475\" src=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image3-3.png\" alt=\"\" width=\"756\" height=\"459\" srcset=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image3-3.png 756w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image3-3-600x364.png 600w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image3-3-300x182.png 300w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image3-3-580x352.png 580w\" sizes=\"(max-width: 756px) 100vw, 756px\" \/>Once you have selected this option for a specific post or a page, the restriction will be applied to that specific post or page. The content will be displayed to everyone regardless of logged in users or normal users.<\/p>\n<h2>Display To Logged In Users<\/h2>\n<p>This option allows you to display content based on different user roles. If you want to display content to your administrator and editor only, simply select the respective options.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-30472\" src=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image1-2.png\" alt=\"\" width=\"752\" height=\"141\" srcset=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image1-2.png 752w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image1-2-600x113.png 600w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image1-2-300x56.png 300w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image1-2-580x109.png 580w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/p>\n<p>Displaying content to a limited number of users is more useful. For instance, you run a school website where teachers submit results of students using a form. You wouldn\u2019t want students to have access to that form. So by selecting \u201cTeacher\u201d in the restricting option, you can display that content to teachers only.<\/p>\n<h2>Display To Subscription Users Only<\/h2>\n<p>If you run a blog, you must have a subscriber list that you provide some extra content through an email newsletter and on your website. For example, you want to provide a guide to your subscribers only. Just select \u201cSubscriber users only\u201d and the content of that page will not be displayed to anyone else but your subscribers.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-30473\" src=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image2-2.png\" alt=\"\" width=\"729\" height=\"126\" srcset=\"https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image2-2.png 729w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image2-2-600x104.png 600w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image2-2-300x52.png 300w, https:\/\/wpblog.com\/wp-content\/uploads\/2017\/11\/image2-2-580x100.png 580w\" sizes=\"(max-width: 729px) 100vw, 729px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Restricting content can come in handy if you want to display content to a specific group of visitors. Simply follow these steps and if you have any query, get in touch with us through the comments below.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Content is one of the most important pillars of success for any website. However, sometimes you need to restrict content for some specific visitors on your website. Let\u2019s say you want to display a piece of content for your subscribers only, in that case, you&#8230;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":30483,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[47],"tags":[485],"acf":[],"_links":{"self":[{"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/posts\/30468"}],"collection":[{"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/comments?post=30468"}],"version-history":[{"count":8,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/posts\/30468\/revisions"}],"predecessor-version":[{"id":30484,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/posts\/30468\/revisions\/30484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/media\/30483"}],"wp:attachment":[{"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/media?parent=30468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/categories?post=30468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpblog.com\/wp-json\/wp\/v2\/tags?post=30468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}