Support » Fixing WordPress » Changing the Number of Posts on each theme

  • WordPress 1.5

    How do I Change the number of posts per page, on a theme – to – theme basis. ?

    Suppose Theme1 shows 6 posts on the Front Page, I want Theme2 to show 10 posts on the front page.

    how do i accomplish that ?

    Thanks in Advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think the solution for this is a variation of what I posted here:

    http://wordpress.org/support/topic.php?id=21819#post-124216

    There are a ton of $query_string parameters that you can set. One of them is called posts_per_page. I haven’t tested it but I bet if, imediately below the get_header() call, you added something this:

    <?php $posts = query_posts($query_string . '&posts_per_page=10); ?>

    You’d get the result you were looking for. Just change the number ’10’ to be whatever you’d want.

    Again, I haven’t tested it, but it seems like it would work.

    That WORKed !

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing the Number of Posts on each theme’ is closed to new replies.