use &showposts=x with have_posts
-
I am trying to set up a system that only shows 12 posts per page in 2 seperate columns. I have the 2 columns set up they just show the same posts so I am trying to use this code.
<?php if (have_posts()); ?> <?php while (have_posts()&& $postNumber < 6) : the_post(); ?>at the top of the page and this on the next column
<?php while (have_posts()&& $postNumber < 6) : the_post(); ?>Where can I put &showposts. Any time I do a WP query it pulls posts from all categories instead of just one.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘use &showposts=x with have_posts’ is closed to new replies.