Title: og:image generated with shortcode
Last modified: May 17, 2021

---

# og:image generated with shortcode

 *  Resolved [nishville](https://wordpress.org/support/users/nishville/)
 * (@nishville)
 * [5 years ago](https://wordpress.org/support/topic/ogimage-generated-with-shortcode/)
 * 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](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [5 years ago](https://wordpress.org/support/topic/ogimage-generated-with-shortcode/#post-14450957)
 * Hi,
 * We do know that the `og:image` tag is generated based on the following [functional specification](https://developer.yoast.com/features/opengraph/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/](https://yoast.com/help/custom-open-graph-tags/)
 *  -  This reply was modified 5 years ago by [Michael Tiña](https://wordpress.org/support/users/mikes41720/).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years ago](https://wordpress.org/support/topic/ogimage-generated-with-shortcode/#post-14477196)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/ogimage-generated-with-shortcode/#post-14477196)
 * Status: resolved