Have a look at the Members Plugin by Justin Tadlock.
It has a “content permissions” feature, that let’s you restrict posts and pages by user role.
Alternatively, if you wanted to implement this yourself, you could write a shortcode that redirects the user conditionally. And place that on pages you want to restrict.
Since there is an excellent and well written plugin for this job however, this is one of the few occasions where I’d recommend using an existing plugin over coding it yourself.
Related Posts:
- wordpress reusable content blocks
- Display Custom Field Value on Admin Page Column
- Add_Meta_box to custom page (formidable edit post)
- Get content and send to 3rd party
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- Create a blank admin page from plugin
- Remove 3rd party plugin notices from within own plugin
- Changing page URL and connect newsletter to MailChip
- WordPress page and plugin list using sql query
- do_action() hook into load-(page)
- Create page from plugin, but have it completely hidden
- How to change the name of the “edit my profile” link in the WordPress admin backend
- How to add subcategories to the blogroll?
- How do I write an inventory list plugin that creates dynamic details pages?
- Can I allow certain people to add/edit pages within a parent?
- Sync User to cPanel webmail?
- Adding CSS to custom post type admin page causes error
- Proper way to replace the_content only for pages created by custom plugin
- Add menu page issues (permissions & position)
- How to remove/hide Yoast’s “SEO” tab in admin panel?
- Would Gutenberg be considered a PlugIn?
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Show author on every sub-page
- Add sub menu page in your plugin
- What’s causing this error? “Warning: Invalid argument”
- Move plugin-settings to ‘Settings’-menu in the admin
- How to have sample page for each new register users in a membership website
- One sub site is slow while all others load fine, same theme & plugins [closed]
- WordPress Admin Menu defining function is seperate file
- How do I add some javascript validation to the admin interface form’s onsubmit?
- remove all submenus from plugin
- How to create a page with links to other pages that include image and excerpt?
- Create WordPress posts from JSON array using plugin in admin
- Plugin getting Cannot modify header information errors
- Thesis 2 custom Page
- Making my plugin create a page?
- creating a plug in that would tap into save/update action of posts [closed]
- Simply poll & Events Calendar plugins clashing
- Add Content to Content()
- How to see which sites use my installed plugins (wordpress multisite)
- Simulating a wp page – wp page load sequence
- How to use the CSS of the WordPress core in the development of my administration page?
- in source code but I can’t find it in files or plugins
- Updating WordPress plugin admin panel footer text
- WordPress permissions error with admin account
- How to create wordpress page that lets users create their own quiz? [closed]
- getting notifications about updates only in the “core” page
- Huge number of 404 pages getting spawned
- Remove value from array within post meta ajax admin
- Get post content from outside the loop with plugin shortcode usability
- Add logo to admin menu in my plugin
- Problem after updating plugins
- How to create plugin auto create page wordpress?
- Custom form not showing in correct place on page
- Change website directory safely to add a static page on startup
- Price comparison table based on Custom Post Type?
- Equivalent of admin.php for public pages
- Remove specific administrator’s capability
- Use jQuery Datepicker code from plugin
- problem with register_activation_hook in plugin
- Plugin permissions for Editor role
- Error: Can´t access facebook comment plugin admin page
- How to force load a page in plugin?
- How to dynamically change spots of text in custom page?
- How to add an admin alert for missing plugins
- Custom page in plugin visible in menu
- How to hide plugin options for editors via functions.php
- Adding a pagenavi to function for displaying bookmarks
- Ajax request sends url rather than data
- Gathering all Custom Post Type posts in to array/object the proper way
- Is there a syntax highlighting plugin for HTML View? [duplicate]
- What is the best way to make a custom page from a plugin?
- Setting text widget to one page only
- How to add captcha to publish widget
- Pasting this PHP breaks my page. Why?
- Adding a jQuery modal dialog to the admin area
- Modify pages widget and make a plugin?
- Redirect plugin after form submit or show errors
- How do I create pages within a WordPress post?
- How to create a plugin page that shows XML?
- Gantry Framework: new page loads homepage content instead of page content
- What is the most efficient way of adding additional functionaliy for admin only
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- Elementor Combined all Sections into 1 Text Editor
- Custom plugin places html head content in body
- Pass PHP variable to javascript
- How to permanently show Word Counter on Create/Edit Page. WordPress5.9.3
- Displaying page content from plugin, inside exising empty WP page
- Oops! That page can’t be found
- Copy/paste local images not working in WordPress
- Use get_pages() before another plugin modifies it
- how to show all posts of each category in pages
- Elementor: How to design Dropdown Select Box Navigation page like Chegg
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Give custom page template a custom post ID
- Bookmarking custom template pages which all have the same page ID
- Admin Custom Plugin List Files in admin Table
- create pages automatically and dynamically in wordPress