schema.org - Need help adding Microdata to an event -
i'm struggling correctly add microdata events on page. google structured data testing tool can read data isn't displaying correctly. i'm getting confused.
i trying tag sports league has single event on 1 night consists of 3 games taking place @ same location.
<div itemscope itemtype="http://schema.org/sportsevent"><!--microdata week 1 event--> <meta itemprop="name" content="week 1 lacrosse games"> <meta itemprop="location" content="street, town, ny"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <!--column--> <h3>week 1<br><span itemprop="startdate" content="2014-06-27t18:00">friday, june 27</span></h3> <br> <div itemprop="subevent" itemscope itemtype="http://schema.org/subevent"> <h4><span itemprop="name">game 1</span> - 6:00 pm</h4> <p><span itemprop="performer">team 1 vs.team 2</span></p> </div> <div itemprop="subevent" itemscope itemtype="http://schema.org/subevent"> <h4><span itemprop="name">game 2</span> - 7:00 pm</h4> <p><span itemprop="performer">team 3 vs. team 4</span></p> </div> <div itemprop="subevent" itemscope itemtype="http://schema.org/subevent"> <h4><span itemprop="name">game 3</span> - 8:00 pm</h4> <p><span itemprop="performer">team 5 vs. team 6</span></p> </div> </div><!--end column--> </div><!--microdata week 1 event-->
i'm not sure sort of problems you're having rich snippets displaying, did notice couple of things i'd recommend change. since of these events sporting events, recommend use sportsevent type them all. need specify of start times in iso 8601 format. additionally, expected value of "performer" property either organization or person, , sportsteam extension of organizaton type. recommend using property twice within each event specify 2 different teams playing, along sportsteam type, this:
<div itemprop="subevent" itemscope itemtype="http://schema.org/sportsevent"> <h4><span itemprop="name">game 1</span> - <meta itemprop="startdate" content="2014-06-27t18:00" />6:00 pm</h4> <p><span itemprop="performer" itemscope itemtype="http://schema.org/sportsteam"> <span itemprop="name">team 1</span></span> vs</p> <p><span itemprop="performer" itemscope itemtype="http://schema.org/sportsteam"> <span itemprop="name">team 2</span></span></p> </div>
i hope helps.
Comments
Post a Comment