Problem:
Is it possible to restrict access to the post-type archive but not the single post?
Solution:
It is possible to restrict users to access pages using the method below:
https://toolset.com/course-lesson/restricting-access-to-pages/
But please consider that WordPress creates an archive automatically when a custom post type is created and the control for accessing that is connected to the whole post type itself and there is no distinction.
So be aware that even if you restrict the page in question that contains the archive, there is an internal link created by WordPress that will be accessible unless you restrict the access of the whole post type.
Relevant Documentation:
https://toolset.com/course-lesson/restricting-access-to-pages/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 4 replies, has 2 voices.
Last updated by 2 years, 4 months ago.
Assisted by: Christopher Amirian.