Google Search Console reported a bunch of structured data errors in a new WordPress blog I began recently. This was a surprise, because I didn't know I was offering structured data. The WordPress theme I've been using, Twenty Twelve, includes CSS styles in blog posts to support the hAtom microformat, which helps search engines recognize the components of a blog post such as the title, author and tags.

When Google crawled the blog, the Structured Data section of Search Console flagged 20 pages with the error "missing: updated," which indicated the data should have an element called updated that isn't there.

Screen shot of Structured Data report in Google Search Console

I did some digging and found that WordPress bloggers are solving this problem in some complicated ways, like adding a plugin just to filter the structured data out. But I found an easier solution.

The updated style indicates when a blog post was last updated. In every page that displays a blog entry, updated should be in the HTML where the post time is displayed. Here's an example prior to the fix:

<time class="entry-date" datetime="2016-04-02T19:39:49+00:00">April 2, 2016</time></a>

Any blog post can include hAtom structured data by adding class names to the tags that surround an element. The updated class should be added to the time tag, turning the HTML into this:

<time class="entry-date updated" datetime="2016-04-02T19:39:49+00:00">April 2, 2016</time></a>

In the folder for my blog's theme, I found the file I needed to edit to add this fix: functions.php. This file is a collection of PHP functions to enhance the theme and modify WordPress functionality.

In a function called twentytwelve_entry_meta(), I found the line where the blog post's time is displayed. I edited the line to add the reference to updated. Here's the line after the change:

$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date updated" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )

I'm still learning about WordPress and not ready to make major changes to a theme's PHP code, but this fix is a minor adjustment to the HTML output, so I thought it would be safe to attempt. The fix was successful: When I test my blog's pages in Google's Structured Data Testing Tool they pass.

The fix I've described works in the Twenty Twelve theme -- and probably some of the other basic themes for WordPress. Because each theme has different HTML, you may find the code that displays the time someplace else.

-- Rogers Cadenhead




2014 new nfl jerseys houston texans 90 jadeveon clowney camo realtree elite jerseyslimited torrey smith womens jersey baltimore ravens super bowl xlvii 82 alternate black nfl30 justin forsett jersey gardens69 brett jones jerseys qr code
le plus populaire hommes bleu air jordan 4 retro 11lab4 patent cuir patent-cuir


youth nike seahawks 16 tyler lockett steel blue team color nfl vapor untouchable limited jersey7 jimmer fredette jersey xavier2012 new nfl jerseys philadelphia eagles 42 kurt coleman green game jerseysgame michael vick youth jersey new york jets 1 road white nfl
nike kobe 8 graffiti more images


11 brett gardner jersey eventsyankees 12 wade boggs navy blue flexbase authentic collection stitched mlb jerseynike air force 1 low premium black white hot red nike air force 1 low premium black whiteadidas x15 2 feature
nike lunarglide 7 womens red


juventus 4 martin caceres home long sleeves youth kids child 2016 2017 club soccer jerseys2 hill jersey turnpike15 phillip dorsett jersey zillow24 tony perez jersey transit
washington nationals 27 jordan zimmermann 2014 all star mlb jerseys jerseys


nike air max 90 purple orangenike zoom pegasus 32 orange redadidas launch mercury boot packnike free 5.0 2014 orange purple nike men free 5.0 2014 purple blue orange white running shoes
new balance 420 yellow new balance u420 shoes


70 tyler johnstone jerseys basketball9 henri richard jersey turnpikemens nike air max 90 sale ukreebok zig fuel coral
air jordan 6 white sky


68 mehdi abdesmad jerseys jrpittsburgh penguins 66 mario lemieux 1972 white with light blue throwback ccm jerseymens washington capitals 8 alex ovechkin red third reebok hockey jerseyedmonton oilers nugent hopkins 93 white replica jersey sale
nike air max 90 duck infra camo


custom nike pauly vlone custom air force 1 low white for salenike sports bras on saleair jordan 4 hong kongair jordan 5 sunblush release date
air jordan retro 4 kids khaki


nike roshe hi sneakerboot womens nike roshe one hi sneakerboot 39.98 sneaker stealcheap nike air max 2014 paypal cheap nike shoesmens nike free run 3.0 v6 white purplejordan 13s size 7 for sale
mens nike roshe run slip grey gold


air jordan superfly 2 christmasnike white blue air max bwnike kd 8 silver bluered and gold foamposites
nike air max thea 8.5


air jordan retro 10 womens orange blackkids air jordan 10 redair jordan force fusion 10reebok question unworn all star 2
atlanta falcons grey jersey


undftd x puma clyde canvas collection previewboyss grade school threadborne slingflex running shoesnike air max hyperfuse lownike free run 5.0 new colors
air jordan spikea z


nike air max 2010 shoes redjordan son of mars low noir grape icemilan nike air max 1 nike air max 1 ogair jordan 11 low red bottoms
nike air max 90 women shoes white pink


40 andrew benintendi jersey planelite ronnie hillman mens jersey denver broncos 23 super bowl xlviii camo fashion black nflnike skateboarding fall 2012 collection at berlins bright tradeshownike free flyknit 5.0 wolf grey nike free tr 5 flyknit womens training shoe. nike id
nike dunk sky hi in black undercover x nike dunk sky hi collection


best shoes for big guyscheap jordans 4 light upair jordan vi 91 champ for salepink leopard print jordan
nike air presto ultra flyknit black white


nike free 3.0 unisex rednike air pegasus 92 pink blacknike flyknit lunar 3 silver purpleair jordan 2 gold
5 j.r. smith jersey for sale


jordans air retronike air max 2015 south africaair max 90 neon pinkelena delle donne nike kyrie 2 chicago sky pe
nike lunar presto colors


jordan 4 black royal tee match retro 4 motorsport shoesair max 95 size 7cheap grey nike roshe runnike air max shoes in pakistan nike air max ltd
2017 air jordan 11 low lakers


46 will johnson jerseys jointhouston texans pet jerseyblack lamar holmes womens jersey nfl atlanta falcons 76 game alternate jerseyselite bob griese youth jersey miami dolphins 12 alternate aqua green nfl
jordan 14 challenge red ferrari


nike lebron 12 silver gold nike lebron 12 silver goldnike air max kpu 2017jordan 3 retro turfs air jordan 3 retronike air force 1 low max air vt camo nike air force 1 low max air vt qs camo black 530989 090 rmkstore
13 t.y. hilton jersey for sale


air jordan logo xboxnike air max light black white rednew balance 574 grey gold new balance metallic 574 sneakers modish and maincustom denver broncos nike shox find this pin and more on shox. size 7 and pretty please .custom denver broncos nike
nike cortez classic og nylon pimento sail black


air jordan august 2010air jordan golden moments pack saleadidas neo canvas pink goldnike free all white womens
27 tyvon branch jerseys uk


mens nike air max 2015 gold greyadidas originals top ten hiair jordan 13 and 11nike foamposite white
nzonzi boots


nike flyknit chukka menwomen tights and leggingsmens nike blazer red whitewomens nike kobe 9 low yellow black
mita sneakers x adidas originals torsion allegra first look


authentic jordan sneakers on saleblack air jordans fusion 6latest air jordans in storesjordan 1 cheetah for females
nike carolina panther hoodie


air max moto 5 mensnike air max 90 size 12 kidsjordans for cheap online size 7.5safari jordan 1
nike air force 1 high olive green nike air force 1 customized to navy green custom hand painted footsoldiercustoms brings out customized-to-navy-green-custom-hand-painted-footsoldiercustoms-brings-out


air jordan retro 29 grey yellowair jordan future yellow greenmens nike roshe run slip on gpx casual shoes mens nike roshe run slip on gpx casual shoesmens supra bleeker green blue mens supra bleeker green grey. nike air max 2014 sky blue black
air jordan retro 10 royal blue pink


air jordan new shoesnike shox turbo grey orangenike air jordan 1 maxcheap jordan sneakers wholesale cheap jordan sneakers for boys
nike free 3.0 green blue men 2014 nike free 3.0 flyknit mesh fluorescent green blue with black logo running shoes iirgihq fluorescent-green-blue-with-black-logo-running-shoes-iirgihq


reebok los angeles kings faceoff jersey hoodie nhl sweatshirtmens new england patriots 73 john hannah red retired player nfl nike elite jersey91 robert ayers jerseys vtelite odell beckham jr mens jersey new york giants 13 road white nfl
nike air speed turf max for cheap


women nike oakland raiders 51 aaron curry elite black team color nfl jersey salegame vince wilfork womens jersey new england patriots 75 new be luvd pink nfl11 julio jones jersey menu29 legarrette blount jersey events
nike air huarache high top nike air huarache high top


air jordan iii 3 retro countdown splitpittsburgh panther hatsmens nike air force 1 orange yellownike air presto pink silver
michael jordan boots for girls


nike air max 1 trainers in black white and greenwomens nike air max thea red blackrobert griffin iii reviews the adidas adizero 5 star midnike blazer premium year of the ox
air max 1 kid robot


jordans shoes outletwomens nike shox turbo 21 all whitezappos uk air max 90 nike air max 90customize nike air force 1 on nike id
mens nike zoom kd 7 black white orange


nike air max 1 essential white black wolf grey nike air max 1 essential greyair max man hypnike free 5.0 no laces nike free no lacesmidnight blue air max 2009
air nike jordan retro 4


26 jimmy vesey jersey rd72 donald penn jersey shoreblack and purple adidasnike jordan flight cheap
air max 90 boots suede kids air max 90 boots


nike air max speed turf nike air max speed turf black white voltage yellow 525225 011 7fragment design nike sb dunk low black pigeonretro air jordans cheapnew york sneaker boutiques
supra hammer snake


2017 air jordan 12 gs black velvetnike air huarache trainer 1992 nike air huarache 1992 for saleair max 95 neon turquoiseair jordan hydro xiv
aidas boost clima chill pink orange


nike air max cb retro cheap nike air max cb shoes from chinajordan retro 8 boysmens nike free run 5.0 v4 gold purplenike air force 1 low vt prm
nike air max black grey pink


air max ultra blackadidas white black stripesnike blazer mid premium acg 2013 hazelnut sport redmulti color jordans for girls
nike vapor ix 06m


nike camo mad maxnike air shake ndestrukt og white navy release datenike womens zoom soldier iv think pinknike air max 90 mid winter print nike air max 90 mid winter polka print sneaker freaker
flyknit racer lavender


elite stewart bradley mens jersey denver broncos 55 super bowl xlviii alternate navy blue nfl85 daniel brown jerseys youth27 addison russell jersey utahmlb jerseys milwaukee brewers 9 jean segura 2013 yellow jerseys
spiderman air max 95


nike sb koston one soft grey summer 2012womens white timberlandsnike air force 1 duckboot navy nike air force 1 duckboot bamboonike flyknit racer macaron pack white cool grey ghost green wolf grey
nike air max 1 nd liberty hyper blue may 2013 release date


nike air flight 89 black metallic bronze white cheap sale 4newest style jordans newest style eyeglassesair jordan 3 iii retro 1994nike air max leather 90 nike air max 90 leather premium
elite torrey smith mens jersey baltimore ravens super bowl xlvii 82 team road two tone nfl 82-team-road-two-tone-nfl


19 jeremy maclin jersey for saleyouth nike dallas cowboys david arkin limited 62 navy blue throwback jersey for sale saleelite chris harris jr mens super bowl 50 champions jersey denver broncos 25 alternate navy blue nflmen nike new orleans saints 10 chase daniel limited white nfl jersey sale
18 jeff locke jerseys nyc


nike free trainer 5.0 black and gray nike free trainer 5.0 v4 with weave 579809 013 black silver mens sz 9.5 11.5. prevnike lunarglide 2 flywire womensjordan 11 gamma blue uk price jordan 11 gamma blue footlockernike air max tuned1 plus now in store platinum collection and on
nike air presto ultra flyknit maroon


nike kobe year of the snakewomens mizuno wave prophecy 3 yellowall red chuck taylorsair jordan 6 vi retro
nike air max bw denim pack the nike air max bw has been given the premium treatment this spring and if youre a fan of the silho premium-treatment-this-spring-and-if-youre-a-fan-of-the-silho


air jordan 1 retro phat premier men shoe nike air jordan 1 retro phat2017 new nike kd 10 black white grey mens shoes for saleadidas springblade infrarednike free flyknit 5.0 black white
womens training shoes nike free tr fit 5 brthe mint green white 704697 301 301


mens nike roshe run floral all greenhaywood mall holiday hours 2015oakley turbine reviewshigh heel air jordan boots
nike roshe run leather flyknit roshe run fly knit black on black right stuff pinterest best roshe ideas black-right-stuff-pinterest-best-roshe-ideas


university of nikenike air force 1 yellow greyall white jordan future lowair max tn plus blanc bleu
adidas zx flux red


nike free sparkle swoosh air jordan vii haresvalentines day release jordansair jordan 7 pantone release datecheap nike roshe run navy blue
42 james worthy jersey turnpike


nike kd 7 star platinum multicolor pure noir utair jordan olive 9 jordan olive 9new shoes nike air maxnike air 1 max
20 luc robitaille jersey for sale


nike flynit air max womens orange goldnike air zoom structure 18 mnike mercurial vapor superfly iiii x ag soccer cleats black yellowair jordan future womens gold green
15 jason castro jersey for sale


air max 90 mens shoes black whiteair max 1 navy white red og ebaynike air max shoes 2012nike air jordan v raging bull
air max 97 triple noir qasa undefeated x nike air max 97


women black nike air maxnike dunk year of the pig nike shox grey glitter hot pink nike dunk high year of the pignike womens libero 14 tech knit pants blackjordan westbrook 0 low
seattle seahawks beanies yd002


nike shox preto originalair jordan 6 olympic pas cher original 322719 161 air jordan 6 vi original og carmine blanc carmine bas prixvintage nike and air jordan t shirts that need to come backnike air max 90 premium le qs nike air max 90 classic
picture of nike star lebron xii womens shoes blue 021 021


nike air max 90 2015 mens shoesnike air max running gray neon yellowmens salomon s lab sense orange blackair jordan retro 3 black cement size 8
women 2012 new nfl jerseys philadelphia eagles 24 nnamdi asomugha white jerseys with logo asomugha-white-jerseys-with-logo


new balance mens tennis shoesnike air max 2014 anthraciteair jordan black infrarednike roshe cheap black
red new balance cleats


where can i buy authentic jordan shoesnike better world air max 2013air jordan zooms innike air max 90 em yellow green
nike new england patriots 87 rob gronkowski blue limited jersey


picture of lebron 11 basketball sneaker gold black color red 00091nike kd 7 flash lime electric eelhyperrev kyrie irvingnorth face back packs
air jordan 31 all colorways


style and performance with the cole haan lunargrand long wingtip ostrich packnike lunar arktos bootshow much are g shock watchesvalentine day air max 2011
air jordan 6 vi 2012 gris


black white photosmens vibram fivefingers speed whiteadidas yeezy 750 boost june 2016nike kobe 9 low bleu gris
jordan take flight oak hill and st. patrick s pe s


nike air max 96 alpha cheapwhite pink grey mens nike free 3 0 v2 running shoesmens nike lunarglide 7 purple whitethe new 2014 jordans shoes
psny x air jordan 12 collection


mens nike free flyknit 3.0 gold purplejordan hoop tr 97authentic air jordan inike womens air max thea print black
mens nike air max 87 sb blue black


foamposite copper foamfather shirtwhere to buy the nike kyrie 3 black iceair jordan cp3 silver pinkcheap soccer cleats adidas release dust storm collection
womens nike zoom pegasus 32 white green


17 charone peake jerseys near me16 travis jankowski jersey ebaynike air force 1 low light crimson black vivid bluenike sb zoom stefan janoski id paisley
nike nfl cincinnati bengals 28 bernard scott elite women black team colour jersey sale black-team-colour-jersey-sale


womens air jordan retro 2 pink purplekids air jordan 11comme des garons converseair jordan 5 white fire red black
miami dolphins jersey your name


air jordan nike 15 xv retro noir brunair jordan 4 retro black womenpink and purple air max hyperfuseair jordan retro pink snakeskin gs
nike air max 1 bhm qs 2015


air jordan 12 doernbecher carissa navarro black pink release date ah6987 023nike lunarglide 3 usa track fieldnike kd 6 maryland blue crab new imagesadidas neo honeycomb green silver
air jordan 1 iblack varsity red 136066061


newbalance running shoesnikelab roshe cortezjordan 4s all rednike zoom vomero silver black
white ultra boost size 11


Thanks for taking the time to discuss about this, I feel strongly about this and so really like to get more about this kind of field. Wonderful stuff to read and I am so delighted to find this valuable article that is amazingly.


air max 1 comfort premium tapeair jordan vi visnike killshot 2 beige dark redfoam eggplant shirts match official matching clothing
ms sneaker fashion boot spring summer 2010


nike air max high cutair max 95 dynnike air force 1 sky blue purpleusa air max hyp red
cheap air jordan xx8 shoes


new jersey devils wedgewood0 kevin love jersey uk2014 new nfl jerseys new orleans saints 84 kenny stills black limited jerseysnike baltimore ravens 21 lardarius webb black game jersey
womens nike huarache utility yellow gold


womens nike shox nz white yellow gold shoescheap nike hyperdunks 2016 weight loss cheap nike hyperdunks 2016 weight lossadidas originals superstar track pantspink and grey jordans on sale
2017 nike jordan hydro 6 white pure platinum slide sandals for sale 2 sandals-for-sale-2


nike kobe 9 low womens orange goldnike blazer tongueretro 5 air jordans 8wholesale 2015 drake s air jordan 10 ovo white online
men nike eagles 90 marcus smith ii midnight green team color nfl vapor untouchable limited jersey green-team-color-nfl-vapor-untouchable-limited-jersey


Add a Comment

These HTML tags are permitted: p, b, i, a, and blockquote. A comment may not include more than three links. Participants in this discussion should note the site's moderation policy.