Hidden field in acf

I want to have a “like” field for every post, this field supposes to hold the number of likes for every post. But the pr

I want to have a “like” field for every post, this field supposes to hold the number of likes for every post. But the problem is i don’t want it to be visible when editing post and no one except my code can change it. How can i do this with acf ?

I want to have a “like” field for every post, this field supposes to hold the number of likes for every post. But the problem is i don’t want it to be visible when editing post and no one except my code can change it. How can i do this with acf ?

Share Improve this question asked Jun 22, 2018 at 10:45 AmiritionAmirition 3555 silver badges20 bronze badges 1
  • The whole point of ACF is to have visible fields for editing the post. Why do you need ACF? – Jacob Peattie Commented Jun 24, 2018 at 6:59
Add a comment  | 

1 Answer 1

Reset to default 1

Create a field group for just that field. In the Location panel under Rules, set Show this field group if to Current User Role is equal to Administrator - that way, your users won't see the field group but you still will (good for debugging).

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745662611a4638927.html

相关推荐

  • Hidden field in acf

    I want to have a “like” field for every post, this field supposes to hold the number of likes for every post. But the pr

    6小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信