network-media-library icon indicating copy to clipboard operation
network-media-library copied to clipboard

Yoast og:image

Open DennisNDean opened this issue 5 years ago • 1 comments

Yoast doesn't appear to be able to find the featured image to set it as the og:image tag (it falls back to the default image) if the post is not on the media blog.

Manually setting the og:image in the Facebook preview still works.

(Oddly It does set the correct image for the twitter:image tag.)

DennisNDean avatar Jul 02 '19 04:07 DennisNDean

This is because get_post_mime_type returns false on other then the media site because the attachment can't be fetched with get_post.

joiglifberg avatar Oct 28 '19 19:10 joiglifberg