• Resolved maxident

    (@maxident)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[groups_can] shortcode does not work’ is closed to new replies.