Content doesn't show unless logged in
-
I’ve altered template to display content from another page.
It works, but only if i’m logged in. When I checked it logged out, nothing displays.
<? $the_query = new WP_Query( 'page_id=2' ); while ( $the_query->have_posts() ) : $the_query->the_post(); the_content(); endwhile; wp_reset_postdata(); ?>
I don’t see any reason that would display only when logged in… does anyone have any idea?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Content doesn't show unless logged in’ is closed to new replies.