Title: Does plugin work for project content type?
Last modified: April 12, 2023

---

# Does plugin work for project content type?

 *  Resolved [Margriet](https://wordpress.org/support/users/margrietburorader/)
 * (@margrietburorader)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/does-plugin-work-for-project-content-type/)
 * Hi,
   Does the Members plugin also work for the content type Projects? I made a
   workbook for my clients and have indicated that only logged in users can see 
   the content by adding a role and by indicating on the project ‘modification’ 
   page that this content can only be seen by logged in users with this role.
 * When going to a project page and filling out the login details, I am redirected
   to the WordPress dashboard even if I give in the URL of the project page after
   having been logged in?
 * Am I missing something?
 * Many thanks,
   Margriet
    -  This topic was modified 3 years, 2 months ago by [Margriet](https://wordpress.org/support/users/margrietburorader/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdoes-plugin-work-for-project-content-type%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Caseproof LLC](https://wordpress.org/support/users/caseproof/)
 * (@caseproof)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/does-plugin-work-for-project-content-type/#post-16652948)
 * Hi Margriet,
 * Did you use [Content Permissions](https://members-plugin.com/docs/content-permissions/)
   feature to protect Project Modification page? If that’s correct, and if that 
   didn’t work you can use this custom code and modify it a little bit to protect
   specific page for role:
 *     ```wp-block-code
       add_action( 'template_redirect', function() {
         // Redirect users from specific page
         // when user doesn't have particular role
         $user = wp_get_current_user();
         if ( is_page('projects') && ( ! is_user_logged_in() || ( ! empty($user) && in_array( 'author', (array) $user->roles ) ) ) ) {
           $redirect = 'https://your-domain.com/wp-login.php'; // Change this to the correct URL
           wp_redirect( $redirect );
           exit;
         }
       } );
       ```
   
 * I hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Does plugin work for project content type?’ is closed to new replies.

 * ![](https://ps.w.org/members/assets/icon-256x256.png?rev=3508404)
 * [Members - Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/members/)
 * [Active Topics](https://wordpress.org/support/plugin/members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/members/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Caseproof LLC](https://wordpress.org/support/users/caseproof/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/does-plugin-work-for-project-content-type/#post-16652948)
 * Status: resolved