posts_nav_link() not displaying anything
You need to do a little “hack” to get pagination to work for your custom loop. After you define $myquery, do the following: <?php // globalize $wp_query global $wp_query; // copy $wp_query into a temporary variable $temp_wp_query = $wp_query; // nullify $wp_query $wp_query = null; // move $myquery into $wp_query $wp_query = $myquery; ?> At … Read more