最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

advanced custom fields - ACF Posts in Theme Options only returning when logged in? Bug?

programmeradmin0浏览0评论

I have a sidebar widget I've whipped up that uses ACF's Post Object to get some specific content from my site.

However, I've noticed when I'm not logged in that it returns empty. Why is that? I can't see any controls that would cause that.

There are no logged_in conditionals in this part of the theme.

while(have_rows('promo_widget', 'options')): the_row();
    $promos = get_sub_field('posts');
endwhile;

$promos is empty when not logged in.

发布评论

评论列表(0)

  1. 暂无评论