显示帖子如果是true/false是没有ACF的
如何仅显示帖子,“ Nezobrazovat”字段是错误的?
这是我的代码:
$args = array(
'posts_per_page' => 3,
'post_type' => 'mycustompost',
'key'=> 'nezobrazovat',
'value'=>'no',
);
这不起作用,所有前3个帖子均显示
How to display only posts, what have field "nezobrazovat" as false?
This is my code:
$args = array(
'posts_per_page' => 3,
'post_type' => 'mycustompost',
'key'=> 'nezobrazovat',
'value'=>'no',
);
This doesnt work, all first 3 posts are displayed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从ACF文档中值为1或0
https://wwwwwwwwwwwwwww.customfields.com/ressources/resiors.com/resources /true-false/
From the acf docs the value is 1 or 0
https://www.advancedcustomfields.com/resources/true-false/