Skip Navigation

[Resolved] Access control for CPT archives

This support ticket is created 6 years, 6 months 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#709210
toolset-posts_group.jpg

I would like to assign CPT archives to a Posts Group. However their url's do not appear in the list of available files. See image.

The url's of the archive pages are:
hidden link
hidden link
hidden link

I have to limit access to these pages. Is there another way?

#712971

Nigel
Supporter

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

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

Hi there

Do you want to restrict only some users from visiting the archive or all users?

All users is trivial, because it is a setting when you edit the custom post type (at Toolset > Post types). Scroll down to the options section and you will find the has_archive option.

If you want to restrict access to only some users, should those users be able to see individual posts of that type and not the archives?

#713416

Hi Nigel,
I want to give access to an archive to one user, restrict all the other users.

#715338

Nigel,
I found a workaround which suits the client. Thanks for your attention.

#715339

Nigel
Supporter

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

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

Great. Sorry I didn't get back to you sooner, the queue is very busy today.