• 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)
  • Any time I do a WP query it pulls posts from all categories instead of just one.

    Then you need to create a query that limits the posts pulled to only certain categories or excludes specific categories.

    Thread Starter uspinnak

    (@uspinnak)

    To do that I would need to make multiple page templates there is no way to do it with a category page?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘use &showposts=x with have_posts’ is closed to new replies.