og:url, canonical, and json ignoring

[ad_1]

I’m using rewrites and endpoints to add extra pages to my site.

For example I have a profile post (custom post type) called:

example.com/member/shauny/

and I add an extra page to that using an endpoint so it’s:

example.com/member/shauny/reviews/

I also use it for a page /reviews/ so I can add extra rewrites for:

example.com/reviews/itemname/shauny/

This all works great however the SEO plugin uses og:url, rel=canonical and json to point back to the original URL, so sharing on things like Facebook result in the wrong URL!

How can I alter all of those to show the correct URL?

Thanks

Shaun

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer