-
Hi,
add_filter( ‘rank_math/frontend/canonical’, function( $canonical ) {
//create conditional here to check for the tax page
if(condition){
return ”;
}
return $canonical;
});[11-Feb-2021 10:58:35 UTC] PHP Warning: Use of undefined constant condition – assumed ‘condition’ (this will throw an Error in a future version of PHP) in /home/opbina/public_html/wp-includes/functions.php on line 7990
Line 7990:
if(condition){Any ideas how to use this code without error? Your other rank match codes didn’t work for me, only this one I put here.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘BUG Code Remove Canonical’ is closed to new replies.