pfefferle / wordpress-opengraph

Open Graph plugin for WordPress
http://wordpress.org/plugins/opengraph/
Apache License 2.0
22 stars 13 forks source link

add support for array values #5

Open willnorris opened 12 years ago

willnorris commented 12 years ago

we currently only support a single value for a given property, however OGP allows for multiple values. This becomes particularly more complicated when properties are grouped based on proximity.

For example (taking the example from the OGP site):

<meta property="og:image" content="http://example.com/rock.jpg" />
<meta property="og:image:width" content="300" />
<meta property="og:image:height" content="300" />
<meta property="og:image" content="http://example.com/rock2.jpg" />
<meta property="og:image" content="http://example.com/rock3.jpg" />
<meta property="og:image:height" content="1000" />

means there are 3 images on this page, the first image is 300x300, the middle one has unspecified dimensions, and the last one is 1000px tall.