html - nested microdata properties with 3 levels -
i'm trying use micro data (using http://schema.org), have difficulties nested properties.
in short, i'm trying have product, contains review, in turn contains author. 2 first levels ok, when try add other review (of type "person"), google tells me 2 things : other missing review , product doesn't accept author properties.
it seems fail have author within review.
my code has first level :
<div itemscope itemtype="http://schema.org/product">
then later :
<span itemtype="http://schema.org/review" itemprop="review"> <p itemprop="reviewbody">myreview...</p> (author :<span itemprop="author" itemscope itemtype="http://schema.org/person"> <span itemprop="name">name of auhor</span> </span>) </span>
can of spot mistake here ?
thanks lot !
you missed name product , didn't declare item scope review.
this need do:
<div itemscope itemtype="http://schema.org/product"> <span itemscope itemtype="http://schema.org/review" itemprop="review"> <p itemprop="reviewbody">myreview...</p> (author :<span itemscope itemprop="author" itemtype="http://schema.org/person"> <span itemprop="name">name of auhor</span> </span>) </span> <span itemprop="name">product name</span> </div>
Comments
Post a Comment