Title: [groups_can] shortcode does not work
Last modified: August 31, 2016

---

# [groups_can] shortcode does not work

 *  Resolved [maxident](https://wordpress.org/support/users/maxident/)
 * (@maxident)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/groups_can-shortcode-does-not-work/)
 * Hi community,
 * I just started using the groups plugin and seem to have trouble to make the [
   groups_can] shortcode work.
 * I am trying to exclude a page section for some user groups, while they keep being
   visible for others.
 * When trying to exclude one single page section within a page that is viewable
   to all groups, this works perfectly find using the shortcode for groups
 *     ```
       [groups_member group="Registered"]
       Only registered members can see this.
       [/groups_member]
       ```
   
 * I am placing the shortcode opening and closing before and after the page section
   like this:
 *     ```
       [groups_member group="test"][mk_page_section full_width="true"][vc_column][mk_fancy_title style="avantgarde" size="25" font_weight="bolder" text_transform="capitalize" font_family="none" align="center"]
   
       Test Text within the page section
   
       [/mk_fancy_text][/vc_column_inner][vc_column_inner width="1/12"][/vc_column_inner][/vc_row_inner][/vc_column][/mk_page_section][/groups_member]
       ```
   
 * When trying the same thing using the [groups_can] shortcode it does not work.
   As far as I understand this should do the same thing but not restricting certrain
   groups directly, but groups that do not posess the capabibility set with this
   shortcode. I integrated the shortcode like shown below, but when applied it does
   not restrict access and I can see the commands [groups_can capability=”manage_plugins”]
   and
    [/groups_can] written on the published website like they were actual content
   to be seen by users.
 *     ```
       [groups_can capability="testcapability"][mk_page_section full_width="true"][vc_column][mk_fancy_title style="avantgarde" size="25" font_weight="bolder" text_transform="capitalize" font_family="none" align="center"]
   
       Test Text within the page section
   
       [/mk_fancy_text][/vc_column_inner][vc_column_inner width="1/12"][/vc_column_inner][/vc_row_inner][/vc_column][/mk_page_section][/groups_can]
       ```
   
 * Please let me know if you know what I am doing wrong or if you have similar experiences
   using the [groups_can] shortcode. Also please let me know if you nee further 
   information or input.
 * Im working on an intranet using wordpress, developing the site locally, it is
   not online so I cannot send you a link, but I am happy to provide screenshots
   where needed.
 * Looking forward to your input, thanks
 * [https://wordpress.org/plugins/groups/](https://wordpress.org/plugins/groups/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/groups_can-shortcode-does-not-work/#post-7226454)
 * Answered here [http://www.itthinx.com/plugins/groups-file-access/comment-page-4/#comment-729645](http://www.itthinx.com/plugins/groups-file-access/comment-page-4/#comment-729645)

Viewing 1 replies (of 1 total)

The topic ‘[groups_can] shortcode does not work’ 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

 * [groups plugin](https://wordpress.org/support/topic-tag/groups-plugin/)
 * [page section](https://wordpress.org/support/topic-tag/page-section/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/groups_can-shortcode-does-not-work/#post-7226454)
 * Status: resolved