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
- How to check if user is in back end?
- How do i know the current post type when on post.php in admin?
- Create tabs inside Plugins Admin Page [closed]
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- What is the best page ordering plugin that works well with WPML? [closed]
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin or mod for wordpress to make content publication SUPER easy
- Create page when plugin is activated
- How do I only load a plugin js on it’s settings pages?
- How to add a help tab to all admin pages – including plugin pages
- Custom plugin settings: clicking “save changes” does not display success message
- jQuery plugin only in one page/post
- How to develop a community feature in the dashboard for multiauthor site
- How to create a Page alias in WordPress
- How to extract images of post and pages excluding header and logo image in wordpress?
- What’s the point of using WordPress’s built in admin-ajax.php?
- How can I get a list of plugins and which blogs are using them?
- Filter or action hook to insert content on admin pages before tag
- How to set CORS header?
- Custom Text Under Navigation Links
- Set a category for a page
- Automatically adding post and pages to new blog setups
- How do I remove the entire left nav bar in admin for certain level users?
- How to handle admin and passwords requests from plugins developers?
- Show a special message for private page?
- Set of plugins to control the Admin UI
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- How can I make uploaded images in the editor load with HTTPS?
- Do action only on certain front end pages?
- All Users > User List > Update User Meta Field Inline
- How to delete page by deactivating plugin
- Plugin dependencies: show notice like theme plugins dependencies
- php page not found for plugin options menu
- Create page from plugin, but have it completely hidden
- How to add subcategories to the blogroll?
- 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
- 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
- Move plugin-settings to ‘Settings’-menu in the admin
- 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
- Making my plugin create a page?
- creating a plug in that would tap into save/update action of posts [closed]
- 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
- getting notifications about updates only in the “core” page
- Problem after updating plugins
- Custom page in plugin visible in menu
- How to hide plugin options for editors via functions.php
- Elementor Combined all Sections into 1 Text Editor
- Displaying page content from plugin, inside exising empty WP page
- Use get_pages() before another plugin modifies it
- 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
- Adding LOAD MORE on a page
- Randomize post (and page) IDs on generation
- WordPress Frontend Page using Plugin
- Powerpress upload a podcast without creating a post for it
- Allow a page to be edited by a specific custom role
- Failed to load resource: the server responded with a status of 500 () post.php
- Enabling plugin on specific pages and subpages
- Disable plugin for administrator
- How to disable users to view Other pages
- Multiple calling javascript from shortcode in one page
- History of page, interval of years
- Choose default template for a page with code
- Get page content by ID (from a plugin)
- Creating a page that does not show up in the frontend navigation bar
- Fatal error when accessing Pages in WP admin (and problems editing any pages)
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Getting 404 page not found error while trying to access add new plugin / themes
- admin panel save option with ajax
- WordPress ultra slow if I click on posts?
- Display static pages instead of category, in code
- What would cause edit buttons for plugins to disappear?
- WordPress plugins not showing after switching servers
- How to make only selected posts appear on a selected wordpress page
- Static page with formatted post list
- Additional scrollbar appears inside the browser on every page + lag scroll -Winner theme
- Need help with restricted page for users
- WordPress Plugin and other pages not opening
- Set the Social Icon Size in footer
- Display Any Field fromAdmin Panel in Frontend via Shortcode?