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?