Restrict Visibility for User Roles

This feature allows you to control which user roles can see your View item on the page.

Step by step

  1. 1.
    Create your View and assign fields as usual. (See Creating an ACF View)
  2. 2.
    In the right sidebar in the Shortcode Widget Click ‘Copy to clipboard’ on the third shortcode that contains user-with-roles="ROLE1,ROLE2" to copy the shortcode for your View.
  3. 3.
    Paste your shortcode into place.
  4. 4.
    Edit the shortcode replacing ‘ROLE1,ROLE2’ with the roles you want to restrict the View item to.

Watch the video