Title: Problem with multiple conditions
Last modified: October 24, 2016

---

# Problem with multiple conditions

 *  Resolved [Florian](https://wordpress.org/support/users/adv122/)
 * (@adv122)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-multiple-conditions/)
 * Hello,
 * first, great plugin 🙂 but i have a small problem
 * i use the following string
 *     ```
       [groups_non_member group="Registered"]
       Thanks to login or to create a new account
       in order to access your customer area.
       [/groups_non_member]
       [groups_member group="Client"]
       Below the files available to you
       [/groups_member]
       [groups_member group="Registered"]
       You are a registerd user, but no files are available to you.
       [/groups_member]
       ```
   
 * for “not registered” it works fine
    for “registed” also but “client” sees “registered”(
   both display)
 * client is not a sub-group of registered and rights of registered and client are
   not linked…
 * could someone please advise ?
 * thanks alot ! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Florian](https://wordpress.org/support/users/adv122/)
 * (@adv122)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-multiple-conditions/#post-8349069)
 * ok i think i found out 😉 i need to tell
 * “if register”
    and then “and NOT client” 😉
 * that works 🙂
 * anyway great plugin :))))
 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-multiple-conditions/#post-8352269)
 * Hi,
 * Thanks for the update, yes it seems that’s what should work for your case. Maybe
   you’d also like to include login and logout facilities on the page, so the whole
   thing could look like this:
 *     ```
       [groups_non_member group="Registered"]
       Thanks to login or to create a new account in order to access your customer area.
       [groups_login]
       [/groups_non_member]
       [groups_member group="Client"]
       [groups_logout]
       Below the files available to you.
       [/groups_member]
       [groups_non_member group="Client"]
       [groups_member group="Registered"]
       [groups_logout]
       You are a registered user, but no files are available to you.
       [/groups_member]
       [/groups_non_member]
       ```
   
 * The shortcodes added here are `[groups_login]` and `[groups_logout]` for easier
   access and I suppose the nested form for the Client and Registered groups is 
   what you have already found out.
 * Thanks for using the plugin and it would be great if you could rate it – and 
   if there’s anything that would keep you from giving 5 stars please make sure 
   to let me know so we can improve things.
 * Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with multiple conditions’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups - Memberships and Access Control](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

## Tags

 * [access control](https://wordpress.org/support/topic-tag/access-control/)
 * [group](https://wordpress.org/support/topic-tag/group/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-multiple-conditions/#post-8352269)
 * Status: resolved