-
Hello,
I am the developer of a wordpress plugin that allows a site to republish articles (with permission from the original content owner) from another site. When an article is republished, I set some meta data in the post that allows me to identify the URL of the original content. When the post is displayed, I use the get_canonical_url() filter provided by wordpress, and I edit the canonical to be the url of the original content if it is a republished article. I’ve had a few users complain to me that the canonical is not correct for a republished article, and I realized it was because they were using RankMath SEO plugin. It seems like you guys are removing the hook that applies the get_canonical_url() filter. I feel like in your own custom hook, your plugin should be applying the get_canonical_url() filter to keep within the spirit of wordpress. Could you advise me on the best approach to solving my issue?
The ticket ‘get_canonical_url filter not working’ is closed to new replies.