It is always a bad thing to have too many plug-ins. Based on the principle of not using them if you can, I searched online and found that this method is feasible.
1. Open the functions.php file under wp-includes and insert this code:
//Paging is added by the plugin itself
function par_pagenavi($range = 4){
global $paged , $wp_query;
if ( !$max_page ) {$max_page = $wp_query->max_num_pages;} if($max_page > 1){if(!$paged){$paged = 1;} if($ paged != 1){echo " Return to home page";} previous_posts_link( ' Previous page');
if($max_page > $range){ if($paged < $range){for($i = 1; $i <= ($range + 1); $ i++){echo "if($i==$paged)echo ” class='current'";echo ">$i< ;/a>”;}} elseif($paged >= ($max_page – ceil(($range/2)))){ for($i = $max_page – $range;
$i <= $max_page; $i++){echo "if($i==$paged)echo ” class='current'";echo " >$i”;}} elseif($paged >= $range && $paged < ($max_page – ceil(($range/2)))){ for($i = ($paged – ceil($range/2));
$i <= ($paged + ceil(($range/2))); $i++){echo “if($i==$paged) echo ” class='current'";echo ">$i";}}} else{for($i = 1;
$i <= $max_page; $i++){echo "if($i==$paged)echo " class='current'";echo ">$i";}} next_posts_link(' next page');
if($paged != $max_page){echo " Last page";}} }
2. In the theme directory Find the three files index.php, search.php, and archive.php. The themes are different and of course the names are not necessarily the same. Just find the home page, search page, and page through these three files, and then add