posts_per_page Not working
-
I am trying to get posts_per_page to work, and it is not limiting my query for 2 sticky posts to be listed. Any ideas on what is wrong?
<div id="center"> <ul class="feat-post">'; query_posts('posts_per_page= 2'); if (have_posts()) { while (have_posts()) : the_post(); if ( is_sticky() ) : echo '<li><div class="featImage">'; the_post_thumbnail("featImage"); echo '</div><h1><a href="'; the_permalink(); echo '">'; the_title(); echo '</a></h1></li>'; endif; endwhile; } wp_reset_query(); echo '</ul></div>;
Any ideas on how to fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘posts_per_page Not working’ is closed to new replies.