WordPress.org

Forums

WP Page Numbers
In 3.1.2 active links was broken, so here you can find fix (1 post)

  1. Alonce Vincent
    Member
    Posted 3 years ago #

    Find global $paged under function wp_page_numbers
    Add

    if ( !$max_page ) { $max_page = $wp_query->max_num_pages; }
    //ADD THIS
    if( !$paged && $wp_query->query_vars['paged'] && $wp_query->query_vars['paged'] > 1 ) {
    	$paged = $wp_query->query_vars['paged'];
    }
    //ADD THIS END
    if ( !$paged ) { $paged = 1; }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Alonce Vincent
  • This topic is not resolved
  • WordPress version: 3.1.2