Skip Navigation

[Resolved] How to restrict access to all pages and posts for logged in users only

This support ticket is created 3 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

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 2 replies, has 2 voices.

Last updated by Andreas 3 years, 1 month ago.

Author
Posts
#2198927

Hello,
I try to hide everything (pages, posts, cpt, archives) for non logged in users. Only logged in users should see pages etc. (the site is some kind of intranet for a company).
Is there any documentation that you are following?
https://toolset.com/course-lesson/restricting-access-to-pages/
My problems is, that I have to add all pages, posts, etc. manually to a certain post-group. For a bigger site this can be pretty challenging, even more if constantly new posts are added. Is there an option for telling Access Control just the pages which should be public - and the rest is always hidden?
Thanks for your comments!

#2199393

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

If you don't want logged-out users (guests) to be able to see pages, why don't you just control the pages post type with Access and deny read rights to guests?

https://toolset.com/course-lesson/setting-access-control/

#2199605

My issue is resolved now. Thank you!