Hi, I created a widget in template recently that gets specific posts in a group, but it’s only returning them when I’m logged-in to the site. Is there any precedent for this issue or is it a bug?
while(have_rows('promo_widget', 'options')): the_row();
$promos = get_sub_field('posts');
endwhile;
The promos array is what’s returning empty when not logged in. Any ideas?
What are the settings for the post type? Are they non public or in some other way hidden from queries when not logged in? You may need to alter the query that is being used. What type of field is this, a relationship or post object field?