wordpress-opengraph icon indicating copy to clipboard operation
wordpress-opengraph copied to clipboard

add support for array values

Open willnorris opened this issue 13 years ago • 0 comments

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.

willnorris avatar May 20 '12 18:05 willnorris