[resolved] One post on front page. (3 posts)

  1. Koray
    Posted 10 years ago #

    I know this has been addressed before, believe me I've checked.

    But the way I am implimenting doesn't seem to be working. It causes the page to hang up and it just loads till it times out.

    I have my post loop set up like this..

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if(is_home()) { query_posts('posts_per_page=1'); } ?>

    Is there something I am missing, or something I did wrong? Thanks in advance.

  2. Michael Bishop

    Posted 10 years ago #

    I thought query posts was done before the loop, not inside it.

  3. Koray
    Posted 10 years ago #

    Thaaat did it. Thanks, I appreciate it. And I'll have to smack myself for not realizing the error.

Topic Closed

This topic has been closed to new replies.

About this Topic