Restrict content on a page/post to specific users community role

Ultimate member allows you to show or hide content to specific users' community roles. You can do this by wrapping the content with  the following shortcodes:

Note: Role ID should be used in the "roles" and "not" attributes. You can find the Role ID in WP-Admin > Ultimate Member > User Roles table.

Show content to specific roles

   [um_show_content roles='member'] <!-- insert content here --> [/um_show_content]

 You can add multiple target roles, just use comma ',' in between roles e.g.  [um_show_content roles='member,candidates,pets']

Hide content from specific roles

     [um_show_content not='member'] <!-- insert content here --> [/um_show_content]

You can add multiple target roles, just use comma ' ,' in between roles e.g.  [um_show_content roles='member,candidates,pets']

What the specific role see

The restricted content on the page/post is hidden to the other community roles, and they see nothing on the page/post to indicate that there is content they cannot see.