Support » Fixing WordPress » Disabel Pagination

  • On the home page of this site- http://www.dcoh.org/
    I only want to show 2 posts with Category 8 and I want to disable pagination. Right now pagination is there, clicking on page 2 or 3 reveals a page of garbled code. Obviously I need to disable that.

    Right now the query I am using is the following-
    <?php if (is_page(‘home’)): ?>
    <?php $posts = query_posts($query_string . ‘&posts_per_page=2&cat=8’); ?>
    <?php endif; ?>

    I am also using the PageNavi plugin

  • The topic ‘Disabel Pagination’ is closed to new replies.