Hey!
I am trying an not suceeding with this. I am trying to adapt the new image plugin to generate schema mark up if the image is marked as captioned.
I need the final lay out to be:
<figure itemscope itemtype="http://schema.org/ImageObject"> <img alt="Your image caption" width="600" height="400" src="/site/assets/files/1/my-image.600x0.jpg" itemprop="image" /> <figcaption itemprop="caption">Your image caption</figcaption> <meta itemprop="width" content="600"> <meta itemprop="height" content="400"> <meta itemprop="datePublished" content="2015-01-01"></figure>
I also want the datePublished to be the current date and the caption automatically be set as the alt text.
Can any one help with this? JS is really not my thing :o/
Thanks in advacne :o)