-
https://support.rankmath.com/ticket/canonical-url-does-not-change
I was denied a solution to my question.
I had to make changes to the code myself.
Hope this helps someone.add_action( 'rank_math/frontend/canonical', function( $url ) { $custom_url = RankMath\Post::get_meta( 'canonical_url', get_the_ID() ); if ( $custom_url ) { return $custom_url; } return better_amp_guess_none_amp_url();; });
What problems are solved:
– correct canonical links for amp pages
– correct canonical links for non amp pages
– the ability to change canonical links
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘fix RankMath for Better AMP plugin (Canonical Url does not change…)’ is closed to new replies.