Recover share count after https
-
I lost all share counts after changing from http to https.
Whiles searching for a solution I came across this thread.
https://wordpress.org/support/topic/social-shares-count-recover-after-moving-to-https/I copied a code snippet and edited to my domain as directed
function rsssl_recover_shares($html) { //replace the https url back to http $html = str_replace('og:url="https://agrihomegh.com', 'og:url="http://agrihomegh.com', $html); $html = str_replace('data-href="https://agrihomegh.com', 'data-href="http://agrihomegh.com', $html); return $html; } add_filter("rsssl_fixer_output","rsssl_recover_shares");It worked ok by restoring previous share counts. However, I realized share counts for post after https is now reversing back to zero.
How can I get share counts for both before and after https combined or added together ie. for both http and https?
Thank you.
The page I need help with: [log in to see the link]
The topic ‘Recover share count after https’ is closed to new replies.