-
Hi,
I’m going crazy with this, I want to change the canonical and put no index in certain post, but if I put the two does not leave me, only one or the other.
How can I change both?
add_filter( ‘rank_math/frontend/robots’, function( $robots ) {
Code…
return $robots;
});add_filter( ‘rank_math/frontend/canonical’, function($canonical){
Code….
return $canonical;
} );- This topic was modified 5 years, 9 months ago by .
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The ticket ‘¿How change canonical and robot?’ is closed to new replies.