Title: ACF integration not working
Last modified: May 31, 2024

---

# ACF integration not working

 *  Resolved [kptgreg](https://wordpress.org/support/users/kptgreg/)
 * (@kptgreg)
 * [2 years ago](https://wordpress.org/support/topic/acf-integration-not-working/)
 * I activated the Add-on “Members – ACF Integration” in Members>Add-Ons and on 
   the page I put checks next to Admins – Subscribers etc.to only have CONTENT PERMISSIONS(**
   Limit access to the content to users of the selected roles.**) But when I go 
   to the page it says “Sorry, but you do not have permission to view this content.”
   but still shows ALL the ACF content. What else do I need to do? Do I need to 
   add something in the PHP in the template code? Or?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Facf-integration-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Omar ElHawary](https://wordpress.org/support/users/omarelhawary/)
 * (@omarelhawary)
 * [2 years ago](https://wordpress.org/support/topic/acf-integration-not-working/#post-17798924)
 * Hi [@kptgreg](https://wordpress.org/support/users/kptgreg/),
 * Thanks for reaching out Members Support Team!
 * You can protect pages/posts with Members as this [screenshot](https://prnt.sc/D2UO7K8IW-SC).
   You can select a Role(s) that can see it. So, you can use some PHP in your templates
   to also check for the same role(s):
 *     ```wp-block-code
       if(current_user_can('subscriber')) {
   
        // ACF output goes in here 
   
       }
       ```
   
 * If you want to check for multiple roles
 *     ```wp-block-code
       if(current_user_can('subscriber') || current_user_can('contributor') {
        // ACF output goes in here 
       }
       ```
   
 * You can read more in this [thread](https://stackoverflow.com/questions/13404284/wordpress-capabilities-and-current-user-can-in-functions-php).
 * Regards,

Viewing 1 replies (of 1 total)

The topic ‘ACF integration not working’ is closed to new replies.

 * ![](https://ps.w.org/members/assets/icon-256x256.png?rev=3508404)
 * [Members - Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/members/)
 * [Active Topics](https://wordpress.org/support/plugin/members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/members/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Omar ElHawary](https://wordpress.org/support/users/omarelhawary/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/acf-integration-not-working/#post-17798924)
 * Status: resolved