Finally, my problem is resolved. I got my social count back. Thanks for giving the code. @oliwkama, just add the following code in the function.php file of your theme using your hosting panel. The sharing counts will automatically back for all of your posts.
/* Enforce HTTP Open Graph URLs in Yoast SEO
* Credit: stodorovic https://github.com/stodorovic
* Last Tested: Feb 06 2017 using Yoast SEO 4.2.1 on WordPress 4.7.2
*/
add_filter( ‘wpseo_opengraph_url’, ‘my_opengraph_url’ );
function my_opengraph_url( $url ) {
return str_replace( ‘https://’, ‘https://’, $url );
}
-
This reply was modified 8 years ago by himanshu05.