• Resolved wpninja3

    (@wpninja3)


    Hi,
    After updating to the latest version I am seeing a strange issue… YOAST is showing multiple og:image tags in the code, usually it should be Featured image but now I can see the YouTube thumbnail also added as og:image tag.

    This create a problem when we share anything on twitter as it showing Youtube thumbnail instead of Featured image.

    Any idea how we can force YOAST to use only featured image in the og:image tag?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jerlyn

    (@jerparx)

    Hi @wpninja3 ,

    We understand you are now getting multiple og:image tags in the code of your post/page and that it only started after you updated to Yoast SEO 14.9. Is that correct?
    Can you please provide us with the URL of the post/page that’s showing this behavior so we can investigate?

    Thread Starter wpninja3

    (@wpninja3)

    Yes version is 14.9
    here is the https://shorturl.at/eprtP

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    Thanks for getting back to us. After checking that post, we do see that there are two og:image tags being generated in the source code, each with a different image. We are only expecting 1 og:image tag to show. If you set a specific og:image in the Social tab of the Yoast SEO meta box, that should take precedence over the featured image. Are you using any other sort of social sharing or optimization plugin on your website?

    Just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to?deactivate all non-Yoast plugins and switch to a standard theme?like?Twenty Nineteen.?

    Test this on your development or staging site, if you have one. If not, we recommend using the?Health Check & Troubleshooting?plugin. This plugin allows you to run a conflict check?without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process:?How to check for plugin conflicts.

    Thread Starter wpninja3

    (@wpninja3)

    Hey after going through all your suggestion and checking each plugin we changeed the code in this file and it fix the issue:
    /src/presenters/open-graph/image-presenter.php

    after line #53 exit the loop after one run if($ogfix==1){break;}

    Site is working fine now!

    Plugin Support devnihil

    (@devnihil)

    @wpninja3 Thanks for your reply and for confirming that this has corrected the issue for you. We are going ahead and marking this as resolved but please let us know if you require any further assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multiple og:image tag and twitter issue’ is closed to new replies.