WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
WP-pagenavi outside the loop? (2 posts)

  1. progressive_
    Member
    Posted 1 year ago #

    Hello! I'm a newbie.

    I am calling my posts on index.php with:

    <?php
    $myposts = get_posts('');
    foreach($myposts as $post) :
    setup_postdata($post); ?>

    How to I implement the <?php php wp_pagenavi; ?> then?
    Does it have to be inside the loop? Do I have to change everything to get it to work?

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. iversoncru
    Member
    Posted 1 year ago #

    i believe it has to be after the loop, outside.
    Me, i used it after "end while;"

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic