Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capability required to view Advanced Custom Fields in WordPress

I asked this question over on the WordPress StackExchange but was told it was off-topic for there. I hope it is correct to ask it here instead.

A client has asked that I setup the Contributor role in WordPress so that it can only view/edit/delete their own posts from a CPT called 'members'. I have done this using Justin Tadlock's Members plugin + a small snippet of code since they only want the Contributor's to be able to see their own posts & not others (even if they can't edit them).

Everything is working well except for Advanced Custom Fields. The client is using this to provide extra fields on the 'members' CPT, but unless I give the Contributor role the 'edit_others' capability they are unable to see the fields created by ACF.

Is this an issue with ACF, or with WordPress? I am still fairly new to Roles & Caps and I cannot seem to understand how to change this. If possible I would like the ACF fields to be visible on the 'edit_members' capability.

like image 880
Vunus Avatar asked Mar 29 '26 18:03

Vunus


1 Answers

Add the 'edit_others_posts' to your user role.

I had same problem, and after some trying out different combinations, have found that this capability needs to be enabled.

like image 149
Marko Banušić Avatar answered Apr 02 '26 12:04

Marko Banušić



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!