Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Paul Skip Brown on "Get canonical link"

$
0
0

Hi I know get_permalink returns the URL. Some of my posts are redirected and at the same time I update the canonical link to the redirected post URL - (normally relates to post updates).

Is there a function I can use to return the canonical URL of a post if it has one rather than it's 'permalink' URL? I use Yoast SEO to edit canonical URLs and also apply redirects.


Viewing all articles
Browse latest Browse all 8245

Trending Articles