WordPress.org

Ready to get started?Download WordPress

Forums

Adding pagination to a Query (3 posts)

  1. nubevacia
    Member
    Posted 2 years ago #

    I have this query and I would like to add some kind of pagination or at least some "previous" and "next" links. I'm not sure how to do it. Here is the code:

    <?php $studyAbroad = new WP_Query("cat=14,17,18,19&posts_per_page=5"); ?>
    	    <?php if ($studyAbroad->have_posts()) : while($studyAbroad->have_posts()) : $studyAbroad->the_post(); ?>

    Any idea?

    Thanks!!!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. Misskim
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic