Query posts hiding my content
-
I’ve placed a query post above my loop with “the_content” looping. The problem I’m having is that when I add the query, I no longer am able to see the content that I typed in the admin panel.
<?php query_posts ( 'cat=7&posts_per_page=-1' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; else: ?> <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> <?php endif; ?> <?php wp_reset_query(); ?>
As soon as I delete query_posts, my content shows up. What am I missing?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Query posts hiding my content’ is closed to new replies.