admin管理员组文章数量:1026989
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
1 Answer
Reset to default 1Create 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).
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
1 Answer
Reset to default 1Create 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).
本文标签: Hidden field in acf
版权声明:本文标题:Hidden field in acf 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745662610a2161981.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论