WordPress.org

Ready to get started?Download WordPress

Forums

Disabel Pagination (1 post)

  1. hogpath
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic