The plugin uses the post thumbnail for the image. Note that your theme will need to support post thumbnails. Otherwise, you can override the image by using the ‘opengraph_image’ filter.
Any plugin can override the post description by using the ‘opengraph_description’ filter.
Yes, Google+ will make use of Open Graph data (see https://developers.google.com/+/plugins/snippet/ )
Thread Starter
Ovidiu
(@ovidiu)
Thanks Will but I am unsure if I got you right:
– if my theme implements Post thumbnails but i.e. for a certain post the editor forgot to set the featured image, nothing will be displayed, right?
So my question would be if you could change the plugin so it checks first whether a post has a featured thumbnail via if has_post_thumbnail() and if not check whether that post has any attached images and if it has use the first one, if not fall back onto something (i.e. have an option inside the plugin where the admin can set a default fall back image)
Anyway, I just realize this is getting way too long, so maybe you could (if you don’t mind) explain what defaults your plugin is using for which field on the FAQ page? Just so people know what will be used instead of having to try and se what the results are?
I just released v1.4 which will now include all attached images for a post. I don’t yet have a fallback image for cases where the article doesn’t have any images. Right now, the plugin doesn’t have any admin UI at all, and I’m trying to keep it that way as long as possible… keeps things really simple.
as for pulling og:description from the meta tag, there’s really no clean way to do that from my end, since every SEO plugin does it differently. The standard way that WordPress supports a per-post description is with the excerpt, so that’s what I use.
I took a look, and most SEO plugins seem to include open graph tags themselves, though they don’t have near the extensibility of the opengraph plugin.