Navigation überspringen

[Gelöst] How to restrict access to all pages and posts for logged in users only

This support ticket is created vor 3 Jahre, 9 Monaten. 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.

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Andreas vor 3 Jahre, 9 Monaten.

Author
Artikel
#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
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01: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!