Documentation Tips & Tricks Adding Open Graph Tags

Adding Open Graph Tags

Open Graph Tags are automatically enabled for all public, non-VIP blogs on Open Graph tags make it easier for you to control what information Facebook, Google+, and other services display when users share posts from your site. VIP sites are excluded as many existing themes already have custom code that handles these tags. This functionality also enables additional Twitter Card-related metadata.

To enable Open Graph tags, add the following helper function to your functions.php and the tags will be auto-generated for you.


The code that generates the tags can be found in Jetpack.

If you’d like to fine-tune the output of the tags, you can filter jetpack_open_graph_tags and modify the array that’s passed in. Find some examples on the Jetpack blog.

Documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.