Title: Conditional issue
Last modified: August 21, 2016

---

# Conditional issue

 *  Resolved [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/conditional-issue/)
 * Hello,
 * I’m currently working on a site which require acces control like this :
 * – non member can see the public area an only a text in the “register” page
    –
   registered can see a specific part of the “register” page (registered area where
   they can became member) – member can see a specific part of the “register” page(
   member area where they can renew their registration for member)
 * Here is the code I have placed in my “register” page :
 * [groups_non_member group=”Registered”]
    You are not connected [/groups_non_member][
   groups_non_member group=”Member”] Inscription [/groups_non_member] [groups_member
   group=”Member”] Renewal [/groups_member]
 * The issue is that the “non regisered” people can see what is in the “groups_non_member”(
   Inscription in this example)
 * For info, my tree level is like this :
    Registered Member
 * Is there a way to avoid this issue?
    Many thanks Pat
 * [http://wordpress.org/plugins/groups/](http://wordpress.org/plugins/groups/)

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

 *  [ablancodev](https://wordpress.org/support/users/eggemplo/)
 * (@eggemplo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/conditional-issue/#post-4331684)
 * Hi,
    you could try:
 *     ```
       [groups_non_member group="Registered"]
       You are not connected
       [/groups_non_member]
       [groups_member group="Registered"]
       [groups_non_member group="Member"]
       Inscription
       [/groups_non_member]
       [/groups_member]
       [groups_member group="Member"]
       Renewal
       [/groups_member]
       ```
   
 * nesting sometimes do not work well, but in your case it seems to work.
    cheers
 *  Thread Starter [poco06](https://wordpress.org/support/users/poco06/)
 * (@poco06)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/conditional-issue/#post-4331689)
 * Hello eggemplo,
 * Many thanks. I understand now how I can configure multi conditions if needed.
   
   Regards Pat
 *  [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/conditional-issue/#post-4331752)
 * Eggemplo,
 * Is there a way to program multi-conditional shortcodes using nesting with PHP
   code?
 * For example:
    ` <?php echo do_shortcode('[groups_non_member group="Registered"]')?
   > //put content <?php echo do_shortcode('[/groups_non_member]') ?>
 *  [AlfalfaAnne](https://wordpress.org/support/users/alfalfaanne/)
 * (@alfalfaanne)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-issue/#post-4331774)
 * I would also like to know if there is a way to write this type of conditional
   statement in the theme. The only non-shortcode documentation I could find was
   in the comments on the plugin author’s site.
 * It would be great to get more documentation about how to use this really powerful
   plugin directly in the theme files.
 * I tried this:
 *     ```
       <?php echo do_shortcode('[groups_non_member group="Registered"]') ?>
       //put content
       <?php echo do_shortcode('[/groups_non_member]') ?>
       ```
   
 * Doesn’t work.
 * Thanks!
    Anne

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

The topic ‘Conditional issue’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [AlfalfaAnne](https://wordpress.org/support/users/alfalfaanne/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/conditional-issue/#post-4331774)
 * Status: resolved