humanmade / network-media-library

Network Media Library plugin for WordPress Multisite
MIT License
290 stars 55 forks source link

Yoast og:image #60

Open DennisNDean opened 5 years ago

DennisNDean commented 5 years ago

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.)

joiglifberg commented 5 years ago

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.