You or your developer can use the wpseo_opengraph_url filter to customize this feature.
Hi , as we told yesterday we have already got the code like : $url = apply_filters( ‘wpseo_opengraph_url’, WPSEO_Frontend::get_instance()->canonical( false ) );
from plugin file class-opengraph.php .Since our ise migrated to https we have to replace https with http to keep old og:url for getting all previous like counts .So now we had simply given a code like $url = apply_filters( ‘wpseo_opengraph_url’, WPSEO_Frontend::get_instance()->canonical( false ) );
$url = str_replace(“https”,”http”,$url);.
Fortunately this solved the current problem upto 95%.Because now when we take the blog page its og url is old one .But could you please ensure this will remain there after plugin updation?Do you have any suggestion to keep this replace code even after plugin updations ?Becasue this is simply a php function which may lost after your plugin modifications..Kindly reply
One more thing :Evnthough we have changed back to old og:url ,the like count will give old correct data only if we clicked on it atleast once .So if you know any other solution kindly help us
I did the same customization and my likes are not showing up again, it worked for the first post – after I re-liked it as @rohitreubro observed – but no others.
@donnytree If you have a similar issue, please open a new request. That way it’s easier to track issues and provide assistance. Thanks!
Hi, sorry if I confused, I have the same question. Is there anyway to update the likes without having to click on every single one, e.g. “One more thing :Evnthough we have changed back to old og:url ,the like count will give old correct data only if we clicked on it atleast once .So if you know any other solution kindly help us”
Thank you!