Home › Toolset Professional Support › [Resolved] Hide or restrict access to CPT archives
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.
Our next available supporter will start replying to tickets in about 7.13 hours from now. Thank you for your understanding.
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 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 2 replies, has 2 voices.
Last updated by TomW5440 2 years, 7 months ago.
Assisted by: Shane.
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!
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
My issue is resolved now. Thank you!