• Resolved nishville

    (@nishville)


    Hello,

    My og:image is not getting generated as an absolute link. It’s adding the shortcode from the editor.

    Example:
    <meta property="og:image" content="http://[bloginfo%20key='template_url'%5D/images/inline.jpg" />

    Yoast is picking up the first image linked in the editor:
    <img src="[bloginfo key='template_url']/images/inline.jpg" />

    Is there a known fix for this or workaround?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    We do know that the og:image tag is generated based on the following functional specification:

    Only populated when the page contains a valid image, based on the following hierarchy:

    • A user-defined image (for a specific platform).
    • A ‘featured’ image.
    • A prominent image from the page’s content.
    • In the case of an author archive template, the user’s Gravatar image.
    • The site’s fallback/default social image.
    • Could you check if you can define a specific image under the Facebook section of the Social tab of the Yoast SEO meta box when editing that post or page, save the changes, and then see if the og:image tag updates accordingly? You can refer to this article for more information — https://yoast.com/help/custom-open-graph-tags/

    devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘og:image generated with shortcode’ is closed to new replies.