Title: Using conditional AND for Groups
Last modified: January 28, 2022

---

# Using conditional AND for Groups

 *  Resolved [jennybertha](https://wordpress.org/support/users/jennybertha/)
 * (@jennybertha)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/using-conditional-and-for-groups/)
 * I need to show certain pages to people who are members of two groups. So the 
   logic is if they are members of group 1 (only), do not show, if they are members
   of group 2 (only), do not show, but if you are a member of group 1 and group 
   2 then show.
 * As I understand how the plugin works, if they are more than one groups selected
   for visualization on the page, the condition is OR so it will show if the user
   is a member or group1 or group 2, however, I need it to use the AND condition.
 * Is this possible?
 * I thank you for your answer in advance.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/using-conditional-and-for-groups/#post-15310172)
 * Hi Jenny,
 * You’re right, the way it works is using OR, showing the page to members of either
   group.
 * We don’t have an option that you could set to make it work based on AND logic,
   but you could apply a different approach if that’s feasible for your case. That
   approach would be to protect content on the page that is accessible to those 
   group members via nested shortcodes or blocks.
 * For example:
 * Create a page and restrict it to members of Group 1 or Group 2.
 * Inside that page, add nested Groups Member blocks:
    – One outer Groups Member
   block that is restricted to members of the Group 1. – Inside that block, add 
   an inner Groups Member block that is restricted to members of Group 2.
 * Within that second inner block, add the content that only members of both groups
   are allowed to see.
 * Documentation reference: [https://docs.itthinx.com/document/groups/blocks/](https://docs.itthinx.com/document/groups/blocks/)
 * I’ll mark this as resolved as there is an approach to reveal content to members
   of both groups, although also taking note as a possible feature extension.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Using conditional AND for Groups’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups](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

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

 * 1 reply
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/using-conditional-and-for-groups/#post-15310172)
 * Status: resolved