Support » Plugin: WP-PageNavi » Fix – Page Navigation current page stuck on page (1)

  • Page navigation current page indicator stuck on page one no matter what page you are one when passing $query = new wp_query() to wp_pagenavi(‘query’ => $query);

    Fix:
    Change wp-pagenavi/core.php line 139:

    if ( $i == $paged && !empty( $options['current_text'] ) ) {

    to

    if ( $i == get_query_var('paged') && !empty( $options['current_text'] ) ) {

    • This topic was modified 2 years, 10 months ago by marcnewton.
    • This topic was modified 2 years, 10 months ago by marcnewton.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix – Page Navigation current page stuck on page (1)’ is closed to new replies.