Skip Navigation

[Resolved] Controlling access to archive pages

This support ticket is created 7 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by romanB-3 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#471585

Hello,
I need Controlling access to archive pages, and make a redirect to specific page for the users trying to see those archive pages but don't have permission for it.
Where I how may I set that up ?
Thank you.

#471759

Dear roman,

You can try with the Access plugin:
Disable the "Read" privilege for the specific user role:
https://toolset.com/documentation/user-guides/setting-access-control/
section "Managing Access Control for Posts, Pages and Custom Post Types"

#471802

Hello and thank you,
I allready have tried with Access, and it is OK for my custom post type. But the term pages still loads. I can't find where to set the archive pages access control.
Please create a private message zone so I can show you.
Thank you.

#471967

It is another question, since your original question has been resolved, please create new thread for new question, this will help other user to find the answers. thanks

#472031

Hello,
This is not a new question, this is still the exact same thing I am trying to do : controling access to archive and terms pages.
Thank you.

#472044
#472066

Here is a code that solved my problem.

function my_page_template_redirect()
{
    if ( is_tax() && ! is_user_logged_in() )
    {
        wp_redirect( home_url( '/client/' ) );
        exit();
    }
}
add_action( 'template_redirect', 'my_page_template_redirect' );
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.