-
i have 2 url like as:
1) myhomepage/myslugpost/
2) myhomepage/myslugpost/feed
it’s the same content as duplicate, i would inform to google index myhomepage/myslugpost/
now many url was situation as above.
i tried to add filter of rank math plugin to fill auto canonical Url in advantage tab as code below:
add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
$canonical = get_permalink();
return $canonical;
});
seemly it not working. when edit the post it not working. or make new post it’s not auto fill canonical according to permalink slug .
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this ticket.