Saltar navegación

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

This support ticket is created hace 3 años, 9 meses. 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.

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Andreas hace 3 años, 9 meses.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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!