Quote:
Originally Posted by Ameise
Works fine with this code:
Code:
if ($pagenumber > 1)
{
global $headinclude;
$prevpage = $pagenumber - 1;
$prevnumbers = fetch_start_end_total_array($prevpage, $perpage, $results);
$show['prev'] = true;
$headinclude .= "<link rel=\"prev\" href=\"{$address}&page={$prevpage}\">\n";
}
if ($pagenumber < $totalpages)
{
global $headinclude;
$nextpage = $pagenumber + 1;
$nextnumbers = fetch_start_end_total_array($nextpage, $perpage, $results);
$show['next'] = true;
$headinclude .= "<link rel=\"next\" href=\"{$address}&page={$nextpage}\">\n";
}
|
Have added this as a plugin - and pushing the links to page so that's bloody awesome.
Have been looking for a solution to this issue for a while now - and this is perfect. Had to tweak a few things to allow for my URL structure - but it's working perfectly now.
Also added in an if statement to cater for being on page 2 and not including a 'page=1' to the previous page.
THANK YOU VERY MUCH!!