• Resolved jennybertha

    (@jennybertha)


    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

    (@proaktion)

    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/

    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.