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

Comments

Thanks


 

asics gel lyte iii x solebox
womens t shirt 3d model free http://www.sitaraibrahimova.com/multiple/womens-t-shirt-3d-model-free


 

men sandals seller vans t street print sandals
calzona kappa 1 equipacin real betis 2018 2019 http://www.polarbearns.com/girlhood/calzona-kappa-1-equipacin-real-betis-2018-2019


 

nike lebron 14nike hyperdunk nike hyperdunk 2016 lownike hyperdunk
nike crystal shoes 2015 https://www.bitaproducts.com/nike-crystal-shoes-2015-c-40.html


 

outre lace front wig parisian bundle hair batik lace l parting synthetic lace front wig
short curly hairstyles for black women 17 http://www.starmakerapk.com/each/short-curly-hairstyles-for-black-women-17


 

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.

result of 5th class


 

7 star polo black 59fifty fitted hat 3 hats id 51027 star wholesale pittsburgh steelers black white beanie


 

prada black small saffiano leather tote bag bn1801 louboutin boots sale yeti
yenrof http://www.yenrof.com/


 

adidas training zapatos azul rojo essential
yeezy 350v2 zapatos http://www.tpavlova.com/seattle/yeezy-350v2-zapatos


 

In the WordPress support forum, there are from time to time questions abut trackbacks. I haven't used it myself, but I found a good tutorial on the OptiNiche cheap nfl jerseys china blog.


 

I am extremely impressed with your writing skills post and also with the layout on your blog with cheap nfl jerseys. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a nice blog like this one these days


 

Hello there, simply become alert to your weblog thru Google, and found that it is really informative. I am going to be careful for brussels. I will appreciate in case you continue this in future. Numerous folks will probably be benefited out of your writing. Cheers!
cheap jersey website www.araq.net


 

Since I didn't really understand how this works,we supply cheap nfl jerseys I did some searching and found an outstanding WordPress Trackback Tutorial that explains much of what I was finding confusing.


 

This is very useful, although it will be important to help simply click that web page link:


 

Pretty nice post. I just stumbled upon your blog and wanted to say that cheap nfl jerseys china I have really enjoyed browsing your blog posts. In any case I will be subscribing to your feed and I hope you write again very soon!postcheap jerseys.


 

sacai sacai x the north face mens long coat khaki size smx8249c13055 the new herv lger
puma puma essential track suit mens mens tracksuits http://www.viettelgiaiphap.com/winflo/puma-puma-essential-track-suit-mens-mens-tracksuits


 

Informative article, totally what I needed.|


 

We're a group of volunteers and opening a new scheme in our community. Your website offered us with valuable information to work on cheap nfl jerseys china. You have done an impressive job and our entire community will be grateful to you.
nfl team jerseys www.araq.net


 

Thanks a lot for sharing this with all of us you really recognize what you're speaking about! Bookmarked.postcheap nike nfl jerseys, Kindly additionally visit my website =). We can have a hyperlink exchange arrangement between us!
best wholesale nfl jerseys www.araq.net


 

Il right away postwholesale nfl jerseys take hold of your rss feed as I can not in finding your email subscription link or e-newsletter service. Do you have any? Please let me realize so that I may subscribe. Thanks.


 

Hello there, just became aware of your blog through Google, postcheap jerseysand found that it's truly informative cheap nfl jerseys. I am gonna watch out for brussels. Il appreciate if you continue this in future. Numerous people will be benefited from your writing. Cheers!


 

Discover what's the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.


 

Thank you for the auspicious writeup. It actually was once a enjoyment account it. Look complex to more brought agreeable from you! By the way, how can we keep in touch?


 

Hi there, simply changed into alert to your blog through Google, and located that it's really informative. I am gonna be careful for brussels. I will appreciate if you happen to continue this in future. Numerous other people shall be benefited from your writing. Cheers!


 

I do agree with all the ideas you have presented in your postcheap nfl jerseys china. They're really convincing and will certainly work. Still, the posts are too short for starters. Could you please extend them a bit from next time? Thanks for the post.


 

vans classic gris
nike air max 90 para caballeros s http://www.tweakypedia.com/premier/nike-air-max-90-para-caballeros-s


 

I needed to send you that little note just to thank you so much yet again for all the breathtaking strategies you've documented above. It is extremely open-handed with people like you to present unreservedly all a lot of people could have offered for sale as an electronic book to help make some profit on their own, principally considering that you might well have done it in the event you desired. Those strategies additionally worked like the good way to comprehend many people have the identical passion just like my own to see a good deal more with respect to this issue. I know there are many more fun opportunities up front for those who discover your blog post.


 

QuickBooks Support Phone Number- Dial QuickBooks technical Support Phone Number 1-800-311-5657 for QuickBooks Errors from Getsupportphonenumber.com.


 

Thank you a bunch for sharing this with all people you actually recognise what you're speaking approximately! Bookmarked.postcheap nike nfl jerseys, Kindly also talk over with my site =). We can have a link change contract between us!
where to buy official nfl jerseys www.araq.net


 

Pretty section of content. I just stumbled upon your website and in accession capital to assert that I acquire actually enjoyed account we supply cheap nfl jerseys your blog posts. Anyway Il be subscribing to your feeds and even I achievement you access consistently rapidly.
official nfl jerseys wholesale www.araq.net


 

I been exploring for a little bit for any high-quality articles or blog posts on this sort of area postcheap nike nfl jerseys. Exploring in Yahoo I at last stumbled upon this website. Reading this info So i am happy to convey that I have an incredibly good uncanny feeling I discovered exactly what I needed. I most certainly will make sure to do not forget this website and give it a look regularly.
discount pro football jerseys www.araq.net


 

Hi there, just became aware of your blog through Google, postcheap nfl jerseysand found that it is really informative cheap nfl jerseys. I gonna watch out for brussels. Il be grateful if you continue this in future. Many people will be benefited from your writing. Cheers!


 

Hello there, simply became alert to your blog through Google, and located that it is truly informative. I am going to watch out for brussels. Il be grateful if you continue this in future. Lots of other folks will be benefited from your writing. Cheers!


 

Thanks for the auspicious writeup. It in truth used to be a entertainment account it. Look advanced to far introduced agreeable from you! However, how can we keep in touch?


 

rojo uction para caballeros nike zoom
skechers skechers mark nason velow trainers white mens http://www.rangopur.com/america/skechers-skechers-mark-nason-velow-trainers-white-mens


 

Discover what's the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.


 

I have to show my appreciation to the writer just for bailing me out of this circumstance. After searching throughout the internet and meeting methods that were not beneficial, I believed my entire life was over. Existing devoid of the strategies to the problems you have resolved all through your entire write-up is a critical case, and the ones that would have badly affected my career if I hadn't noticed your site. Your good skills and kindness in taking care of every aspect was priceless. I am not sure what I would have done if I hadn't come upon such a thing like this. I am able to at this moment look forward to my future. Thank you so much for the reliable and amazing help. I won't hesitate to suggest the sites to any person who desires support on this problem.
adidas nmd r1 lovebyt.es


 

moncler belloy women coats long black with fur collarmoncler childrens coatsmoncler ladiesmoncler belloy women coats long black with fur collarmoncler childrens coatsmoncler ladies
cross runner jacket mens men product image http://www.jonathanlapitan.com/earth/cross-runner-jacket-mens-men-product-image


 

I not to mention my pals have been analyzing the nice things from the blog while the sudden I had an awful feeling I had not thanked the web site owner for those tips. All of the ladies happened to be certainly warmed to read them and have in effect really been using these things. Many thanks for turning out to be well kind and for finding this form of decent subject matter millions of individuals are really wanting to be informed on. My very own honest apologies for not expressing gratitude to you sooner.
moncler www.monclersoutlet.us.com<>


 

Thank you for every one of your efforts on this website. Kate really loves working on investigations and it's easy to understand why. Almost all learn all of the compelling way you render reliable strategies on the web site and even welcome participation from other people about this content while our child is really understanding a great deal. Take pleasure in the remaining portion of the year. You're the one carrying out a glorious job.
goyard handbags www.goyard-handbags.us.com<>


 

fahion family outfits clothes mother daughter son t shirt women baby tee tops mother and daughter clothes charmainegirls spyder ski jacketbuster brown daddys lil fireman red and white snap down baby boys sleeper space city kidsloading zoom
2017 autumn baby s cotton thin cardigan sweater rainbow knit children s baby girls http://www.ikincielesyaistanbulda.com/injure/2017-autumn-baby-s-cotton-thin-cardigan-sweater- rainbow-knit-children-s-baby-girls


 

Since I didn't really understand how this works,we supply cheap nfl jerseys I did some searching and found an outstanding WordPress Trackback Tutorial that explains much of what I was finding confusing.


 

I believe that is one of the such a lot vital information for me. And i am satisfied studying your article. But wanna statement on few common things, The web site taste is wonderful,postwholesale nfl jerseys the articles is really excellent D.Excellent activity, cheers
buy nfl jerseys www.araq.net


 

In the WordPress support forum, there are from time to time questions abut trackbacks. I haven't used it myself, but I found a good tutorial on the OptiNiche cheap nfl jerseys china blog.


 

Discover what's the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.


 

hey there and thank you in your info ?I have certainly picked up something new from right here postwholesale nfl jerseys. I did however expertise some technical issues the usage of this website, as I experienced to reload the web site a lot of occasions previous to I could get it to load correctly. I were considering if your web hosting is OK? No longer that I'm complaining, however sluggish loading instances times will very frequently affect your placement in google and could harm your high quality rating if advertising and ****|advertising|advertising|advertising and *** with Adwords. postcheap jerseysWell I am adding this RSS to my e-mail and can look out for a lot more of your respective fascinating content. Ensure that you update this again very soon.


 

I feel that is among the so much important info for me. And i am happy reading your article. However wanna commentary on some normal things, The website taste is great,postwholesale nfl jerseys the articles is actually nice D.Good process, cheers
discount nfl shirts www.araq.net


 

I and also my pals were viewing the best tips located on the website then immediately came up with an awful feeling I never thanked the site owner for those strategies. All of the young boys appeared to be totally glad to read them and now have in reality been having fun with those things. Thank you for simply being well helpful and for choosing these kinds of remarkable useful guides most people are really needing to be informed on. My very own sincere apologies for not expressing appreciation to sooner.
michael kors outlet www.michaelkors-outletonlines.us.com<>


 

hello there and thank you on your information ?I have certainly picked up something new from proper here postcheap nfl jerseys. I did however experience some technical issues using this site, since I skilled to reload the site a lot of occasions previous to I may just get it to load correctly. I had been wondering in case your web host is OK? No longer that I'm complaining, however slow loading circumstances times will sometimes affect your placement in google and can harm your high quality score if ads and ****|advertising|advertising|advertising and *** with Adwords. postcheap nfl jerseysWell I adding this RSS to my e-mail and could look out for a lot extra of your respective exciting content. Ensure that you update this again very soon.


 

I have been exploring for a bit for any high quality articles or blog posts on this kind of area postcheap nfl jerseys china. Exploring in Yahoo I at last stumbled upon this site. Reading this information So i am happy to convey that I've a very good uncanny feeling I discovered just what I needed. I most certainly will make certain to do not forget this website and give it a look on a constant basis.
stitched nfl jerseys www.araq.net


 

I'm extremely impressed with your writing skills post and also with the layout on your weblog with cheap nfl jerseys. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it rare to see a nice blog like this one today
get cheap nfl jerseys www.araq.net


 

Il right away postcheap jerseys take hold of your rss feed as I can not to find your email subscription hyperlink or newsletter service. Do you've any? Kindly let me recognize so that I could subscribe. Thanks.


 

We're a group of volunteers and starting a new scheme in our community. Your site offered us with valuable info to work on cheap nfl jerseys china. You've done an impressive job and our whole community will be grateful to you.
where to buy cheap authentic jerseys www.araq.net


 

Discover what's the deal with ingbacks? According to Wikipedia, WP supports automatic pingbacks where all the links in a published article can be pinged when the article is published?we supply cheap nfl jerseys That explains why I get messages about new comments? when posting an edit that cross-references another post of my own. Info on trackbacks and pingbacks in WP here.


 

In the WordPress support forum, there are from time to time questions abut trackbacks. I haven't used it myself, but I found a good tutorial on the OptiNiche cheap nfl jerseys china blog.


 

I do agree with all the ideas you have presented in your postwholesale nfl jerseys. They're very convincing and will definitely work. Still, the posts are too short for beginners. Could you please extend them a little from next time? Thanks for the post.


 

Somebody essentially assist to make severely articles I might state. postcheap jerseysThat is the very first time I frequented your web page and so far? I amazed with the research you made to create this actual submit extraordinary. Fantastic job!
cheap nfl authentic jerseys wholesale www.araq.net


 

I'm extremely impressed with your writing skills postcheap nike nfl jerseys and also with the layout on your blog with cheap nfl jerseys. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it is rare to see a great blog like this one nowadays


 

hey there and thanks to your information ?I have certainly picked up anything new from proper here postcheap jerseys. I did on the other hand experience several technical issues the usage of this site, as I skilled to reload the website a lot of occasions previous to I may get it to load correctly. I were puzzling over if your web hosting is OK? No longer that I am complaining, but slow loading circumstances times will sometimes impact your placement in google and can harm your high quality rating if advertising and ****|advertising|advertising|advertising and *** with Adwords. postwholesale nfl jerseysWell I am adding this RSS to my email and can look out for much extra of your respective interesting content. Ensure that you replace this again soon.


 

I truly wanted to send a quick message in order to thank you for those lovely steps you are giving out on this website. My extensive internet research has at the end been rewarded with really good points to talk about with my colleagues. I 'd claim that many of us visitors are very endowed to dwell in a superb community with many perfect individuals with insightful ideas. I feel very happy to have seen your weblog and look forward to really more awesome minutes reading here. Thanks a lot again for everything.
yeezy 500 www.yeezy500.us<>


 

hot custom caps arylic 3d letters stud rivet hip hop hat beanies knitted caps knitted
shop corona beanie online spreadshirt http://www.biggbossten.com/without/shop-corona-beanie-online-spreadshirt


 

I have to point out my appreciation for your kindness giving support to those individuals that actually need guidance on this content. Your personal dedication to getting the solution along appeared to be remarkably helpful and have always permitted individuals much like me to reach their objectives. Your warm and helpful facts denotes much a person like me and even further to my peers. Thanks a lot; from each one of us.


 

nike kobe 9 elite low new
nike mercurial vortex mens fg football boots navywhite lace fastening http://www.nansforum.com/company/nike-mercurial-vortex-mens-fg-football-boots-navywhite-lace- fastening


 

silk pajamas shorts top inspirational la perla silk pajamas collection
adidas and nike backpacks at argos http://www.dragon-ball-super-vostfr.com/outlets/adidas-and-nike-backpacks-at-argos


 

I wish to show my appreciation to this writer just for rescuing me from this issue. After surfing through the the web and obtaining notions which are not beneficial, I was thinking my entire life was over. Living without the answers to the problems you have solved all through this website is a critical case, and those which might have in a wrong way affected my career if I had not discovered your blog. Your good natural talent and kindness in dealing with every aspect was tremendous. I am not sure what I would've done if I hadn't discovered such a step like this. I'm able to at this point look ahead to my future. Thanks for your time so much for your high quality and sensible guide. I won't be reluctant to suggest your web page to anyone who requires recommendations about this area.
kd shoes www.kevindurant-shoes.us.com<>


 

nike zoom pegasus 31 herren schuhe outlet asics gel quantum 360 mennns rød eye
cluebdistribuzione http://www.cluebdistribuzione.net/


 

darling pink gingham nightie white lace collar button down front waist tie pockets
sale syncro 1mm 2018 long sleeve wetsuit jacket ash pistaccio http://www.gonzalosantosimprovisaya.com/luxuriant/sale-syncro-1mm-2018-long-sleeve-wetsuit-jacket- ash-pistaccio


 

womens timberland boots exclusive at office in shimmering silver
main picture preview preview http://www.cachoscomsardas.com/selection/main-picture-preview-preview


 

I truly wanted to develop a remark so as to say thanks to you for some of the unique hints you are showing on this website. My time intensive internet look up has at the end been honored with extremely good facts and techniques to share with my co-workers. I 'd point out that we visitors actually are definitely blessed to live in a remarkable community with so many brilliant people with very beneficial principles. I feel very much blessed to have come across your entire web site and look forward to so many more thrilling moments reading here. Thanks a lot once more for a lot of things.
pureboost www.adidas-pureboost.us.com<>


 

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.