Pagination not working on home page pls help
-
Hi, pls i have a serious problem and its really troubling me seriously. i am using braxtoon word press theme and this is link to my homepage itsdumebi.com.
the pagination on the homepage does not work…..the pagination on category pages work but not on the homepage….also pls give me a step by step…i am kind of a newbie…thanks !
this is the pagination code
`
if ( !function_exists( ‘pagination’ ) ) {function pagination($pages = ”, $range = 4)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == ”)
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo “<div class=\”pagination\”><span>Page “.$paged.” of “.$pages.”</span>”;
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo “« First“;
if($paged > 1 && $showitems < $pages) echo “‹ Previous“;
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? “<span class=\”current\”>”.$i.”</span>”:”“.$i.”“;
}
}
if ($paged < $pages && $showitems < $pages) echo “Next ›“;
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo “Last »“;
echo “</div>\n”;
}
}
}
- The topic ‘Pagination not working on home page pls help’ is closed to new replies.