To solve the problem temporarily, I changed no. of links per page to 100. But the problem still exists. Please help me in solving the problem.
I checked the code for this. It is as follows:
// show pagination at the bottom
if($iLinkCount <= $links_per_page) $show_pagination = false;
if($show_pagination){
$strPageUrl = ‘/’.$pageslugname;
if($show_category) $strPageUrl .= ‘/’.$show_category;
if($show_subcategory) $strPageUrl .= ‘/’.$show_subcategory;
$next_page = $show_page+1;
$prev_page = $show_page-1;
$output .= ‘<p>’;
// previous page arrow
if($prev_page > 0) $output .= '<a href="'.$strPageUrl.'/'. $prev_page .'">«</a>'
;
$output .= ” “;
// showing the page numbers
for($k=0; $k < $iLinkCount/$links_per_page; $k++){
$page = $k+1;
$pagenumber = ‘
if ($page > 1) $pagenumber .= $page; // don’t use number if poiting to the first page
$pagenumber .= ‘”‘;
if ($page==$show_page)
$pagenumber .= ‘ style=”font-weight:bold”‘; // use bold on the actual page
$pagenumber .= ‘>’.$page.”;
$output .= $pagenumber . ” “;
}
// next page arrow
if (($next_page-1)*$links_per_page < $iLinkCount)
$output .= '<a href="'.$strPageUrl.'/'. $next_page .'">»</a>'
;
$output .= ‘</p>’;
}