wordpress – More Than One OG URL Specified and only Yoast graph is open not Jetpack

wordpress – More Than One OG URL Specified and only Yoast graph is open not Jetpack

There can be two possibilities:

n

    n

  1. The other og tag is printed in themes header.php. If its there then comment that code and youre good to go.

  2. n

  3. The OG tag is being generated by some function hooked to wp_head hook. Now it can be anywhere, in any file in plugin or theme. The best approach would be to check all the hooked functions for wp_head hook. You can do so by this code:

    n

    add_action(wp, function(){ print_r($GLOBALS[wp_filter]); echo ;exit; } );

  4. n

n

Write this code in functions.php of your theme and look for all the functions which are hooked with wp_head hook. You can then comment the code in that particular function.

It is possible that your template adds the additional og:url header (from your page source it appears so). You need to disable the additional headers using either a switch in template settings or by manual edit.

wordpress – More Than One OG URL Specified and only Yoast graph is open not Jetpack

Leave a Reply

Your email address will not be published.