Saltar navegación

[Resuelto] Hide or restrict access to CPT archives

This support ticket is created 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Zona horaria del colaborador: America/Jamaica (GMT-05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por TomW5440 4 years, 1 month ago.

Asistido por: Shane.

Autor
Mensajes
#2345173

Tell us what you are trying to do?
How can I hide or restrict access to custom post type archives?
So I have two CPT's Members and Comments. Neither of these require an archive that are visible to users so I'm wondering how I might go about stopping these being accessible? Thank you!

#2345303

Shane
Colaborador

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Tom,

Thank you for getting in touch.

You can do this by disabling the archive for both of these post types. To do this you will need to go to Toolset -> Post Types and edit your custom post type.

Search for the has_archive option and ensure that it is not ticked.

Thanks,
Shane

#2345437

My issue is resolved now. Thank you!