Thank you, It should work, I will test it and let all know.
Could you just take a quick look if I’m not mistaken here. I’m not a php hero ??
add_filter(‘aioseop_canonical_url’,’remove_canonical_url’, 10, 1);
function remove_canonical_url( $url ){
$paginurl = $_SERVER[“REQUEST_URI”];
$isPaginatedPage = strpos($paginurl, ‘page’);
if ($isPaginatedPage!==false)
{
return false;
}
return $url;
}
-
This reply was modified 5 years, 2 months ago by cybermarcel.