Jetpack and Open Graph Meta Tags: change a post’s Media Type to Video

Customize the way your post previews look like on Facebook

When sharing posts on Facebook, you may have realized that sometimes you can play a video right on Facebook, without having to click and go to another site.

Videos on Face

This is possible thanks to Open Graph Meta Tags. When you share a post on Facebook, or when Jetpack Publicize publishes a post to your Facebook page, Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview. That post preview will often include an image, a title, a description, and sometimes a video like on the screenshot above.

Jetpack automatically creates these Open Graph Meta tags for you unless you already use another Open Graph plugin, in which case we let the other plugin handle things.

Let’s learn how to customize the type of tags that Jetpack can add to your posts.

Add Subtitles to a video in WordPress

WordPress Video Options

I faced an interesting challenge last week: I wanted to add subtitles to a video I had inserted in a page with WordPress’ Core Video Shortcode, but I couldn’t find any shortcode parameter allowing me to specify a subtitle file.

I checked the shortcode’s source code but couldn’t find any “subtitle” attribute there. The Codex page wasn’t helpful either. After more digging, I realized that the whole thing was in fact super easy!

Continue reading

Post Views for Jetpack

New week, new plugin! 🙂

This is once again a Jetpack add-on, and it’s also another good example of the things you can accomplish with the WordPress.com REST API: Post Views for Jetpack pulls data about your site’s stats, as well as stats for each one of your posts.

This is still a work in progress; I would love to know what you’d like in this plugin, and where you would like to display those post views. Open a new thread in the support forums to let me know!