Plugin Directory

Open Graph

Adds Open Graph metadata to your posts and pages so that they look great when shared on sites like Facebook and Google+.

Project maintined on github at willnorris/wordpress-opengraph.

version 1.6 (Dec 30, 2014)

  • implemented get_the_archive_title and get_the_archive_description (new in WordPress 4.1)
  • basic twitter cards support (thanks to elroyjetson)
  • replace $post->post_title with get_the_title() (see #17 for details)

version 1.5.1 (Nov 13, 2012)

  • fix duplicate opengraph markup when used with jetpack plugin (for real)

version 1.5 (Nov 13, 2012)

  • include descriptions on tag and category pages
  • include profile metadata on author pages
  • fix bug with 404 pages include extra og:image values
  • general code cleanup (including removal of dependency on global vars)
  • fix duplicate opengraph markup when used with jetpack plugin

version 1.4 (Aug 24, 2012)

  • better default description
  • include all images that are attached to a post, so that users can choose which to use when sharing the page. If the post has a post thumbnail, that is still used as the primary image.

version 1.3 (May 21, 2012)

  • add 'opengraph_prefixes' filter for defining additional prefixes
  • add new basic properties, and remove some old ones. This is a breaking change for anyone that was using the old properties, but they can always be added using the 'opengraph_metadata' filter. (see f476552 for details)
  • updates to many default values, particularly for individual posts and pages (thanks pfefferle)
  • add basic support for array values (see d987eb7)

version 1.2 (Feb 21, 2012)

  • switch to newer RDFa prefix syntax rather than XML namespaces (props pfefferle)

version 1.1 (Nov 7, 2011)

  • fix function undefined error when theme doesn't support post thumbnails

version 1.0 (Apr 24, 2010)

  • initial public release

Requires: 2.3 or higher
Compatible up to: 4.1.8
Last Updated: 2014-12-31
Active Installs: 3,000+


3.4 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1