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.
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.
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
I found the line where the blog post's time is displayed
This is really great work. Thank you for sharing such a good and useful information here in the blog for students.
Such a nice post, keep up the fantastic work
Hi my name is Stephany Ortega and I am 17 years old I am a student and I am my running my own business my parents have died in plane crash and now I am living with my uncle so guys what about you
Whats up very nice website!! Guy .. Excellent .. Superb .. I will bookmark your blog and take the feeds additionally?I'm happy to seek out a lot of helpful info right here in the submit, we need develop extra techniques in this regard, thanks for sharing. . . . . .
my site here
Hi, Neat post. There's a problem with your web site in internet explorer, might check this? IE still is the market chief and a large portion of other folks will leave out your great writing because of this problem.
my site here
It's in point of fact a great and helpful piece of info. I am happy that you shared this useful information with us. Please stay us informed like this. Thanks for sharing.
my site here
A debt of gratitude is in order for giving late reports with respect to the worry, I anticipate read more. Wooden Roses Arbor
If you are looking for hassle free homeowner loans in UK, look no further. We at Oyster Loan help home owners avail tailored loans according to their requirement. Whether you need quick loans for urgent home repair or want to spend additional amount on home extensions, we can help you find the financial help for the same.
Those who come to read your article will find lots of helpful and informative tips
Well thanks for posting such an outstanding idea. I like this blog & I like the topic and thinking of making it right.
I must say we should have an online discussion on this.
by visiting this site I found cool stuff here keep it up.
only professional writers can make this kind of material, cheers
Visit our website to know the reviews of different assignment help providers.
Fantastic points altogether, you simply received a logo new reader. What would you recommend in regards to your publish that you simply made some days ago? Any positive?
my site here
Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college
I must say we should have an online discussion on this.
This a good way to appreciate the teacher as they put their efforts to train students. UK dissertation Writers appreciates the teachers.
hvac spokane wa
This was a great and interesting article to read. I have really enjoyed all of this very cool information
Congrats on having such well managed site! It has good looks and contains informative content as well. We are also a web portal where students get the help with the academic writing by opting for our online assignment help and can get a well written assignment.
My name is KARLA LOVELL from Texas in the USA. For a very long time, i was deep into financial mess untill a friend of mine told me about CONSUMER LOAN FIRM and how she was helped by the company with an Xmas loan at a very low interest rate of 2% and better repayment schedule.She further stressed that they can help me out of my financial difficulties too.Though i never believed her because i have tried lots of BANKS/CREDIT lenders who could not help me out because of my poor credit score.She advised i should give it a try to be convinced,so i mailed them via firstname.lastname@example.org .Behold it went well and after my explanation, they took me through the loan process and granted me the $67,000,00 as applied with ease on 26th of October 2017, i have a business of mine and my xmas bills became very much easy.
If you don't have time and want to complete your essay within the deadline then don't worry, myassignmenthelp is the right choice for you. they have 4000+ experts who provide essay help services at best price.
By the way, Thank you for sharing with us, and we sincerely hope you will continue to update or post other articles.
Super Mario, Tank, Bomberman, Pokémon are some of the games which makes us nostalgic and brings back our memories of childhood.
Android Application which allows casting the files on your mobile to your television. In other words, this application allows the user to send photos, music, videos, movies and other files
I am come here first time, i find the perfect article. Thanks for sharing interesting and informative post. 192.168 1.254
A portable fish finder has other benefits too. They are light-weight and simple to use. Plus they let you use a fish finder in eventualities where you will not be able to employ a fixed one. مشاور بازاریابی عظیمی
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work Dora the explorer
This is a truly good site post. Not too many people would actually. the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you've done your best. with so much class. If wanted to know more about green smoke reviews. than by all means come in and check our stuff. Enseigne commerciale
it was a brilliant opportunity to visit this sort of site and I am cheerful to know. much thanks to you such a great amount for allowing us to have this open door. Cheap NBA 2K18 MT Stores
I'm not sure where you're getting your info, but great topic.
I needs to spend some time learning more or understanding more.
Thanks for magnificent information I was looking
You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site seo backlinks services
I personally like your post; you have shared good insights and experiences. Keep it up. www.comment-utiliser.info/
I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. Shows in Vegas 2018
I truly awed after read this in light of some quality work and educational contemplations . I just wanna express profound gratitude for the essayist and want you to enjoy all that life has to offer for coming!. https://www.comment-etre-belle.net/
Much obliged to you for peopling get the data they require. Incredible stuff of course. Keep up the considerable work !!! music download free mp3 songs
I discovered your site ideal for me. It consists of wonderful and useful posts. I've read many of them and also got so much from them. In my experience, you do the truly amazing.Truly i'm impressed out of this publish https://doniczki-plastikowe.pl/
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.voyance gratuite par telephone
Losing weight or weight reduction is a hot topic nowadays. I am sure that these tips provided will great help for people looking to reduce weight especially persons like me. Miami Title Loans
This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!.Best FUT 18 Players
This article is an engaging abundance of enlightening information that is intriguing and elegantly composed. I praise your diligent work on this and thank you for this data. You have what it takes to get consideration. Excellent Digitizing LLC
This is great information for students. This article is very helpful i really like this blog thanks. I also have some information relevant for online dissertation help.
The All Registered and Unregistered transporter / taxpayer / Suppliers can register on E-Way Bill Portal for generate ewaybill to transport goods, Now e-way bill is compulsory to supply goods.
Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Vibrant Yogini
This Site And The Resources You Provide Is Really Nice Keep It Up.
You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this sitewrite my essay for me
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. Auto Equity Loans Florida
I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. Commercial Real Estate Loans
This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!.
Wow, was für ein Great Information World Day ist ein sehr informativer Beitrag. Danke für die Post.
For me, this site is quite convenient to use. I do not understand your problems because I do not have the same Probably, it's a matter of individual perception.
I would like to propose a game site where you can find almost all the friv games. Here is the place in places where you find them without problems and even find them very quickly! Most of the time, this happens with video game sites that are so heavy that they do not open up quickly and for this reason they become pains instead of turning into entertainment. Play the friv games here
Alot of blogs I see these days don't really provide marka tescil, that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. Nice! thank you so much! Thank you for sharing.
Trademark, Patent Registration and protection options for all domestic and international design registration, recent developments and news, Turkey and globally, changing legislation and they brought, legal interpretations and opinions.
marka tescil, Patent Tescil ve Tasarım Tescil için yurtiçi ve yurtdışı tüm koruma seçenekleri, son gelişmeler ve haberler, Türkiye ve Global ölçekte değişen mevzuatlar ve getirdikleri, hukuki yorum ve görüşler. Tpe Marka Sorgulama
This blog is so nice to me. I will keep on coming here again and again. Visit my link as well.. Morgan gold
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info best police dogs
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.Elder Scrolls Online Guide
I love this blog so much because I have everthing I promise that and whene u promise something u make that promise also to God I Know because my dad is a minister. Anyway keep up the good work.. voyance retour amour
Excellent Blog! I have bookmarked your online journal, the articles are path superior to anything other comparable web journals.. a debt of gratitude is in order for an extraordinary online journal! تحصیل در انگلستان بدون مدرک زبان
Thanks for sharing valuable content, this is what I need to know. Thank you once again, it's very interesting. I wish you all the best for your next blog in future.
Designer Resume Examples
I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. itsadoggiething.com
I am unable to read articles online very often, but I'm glad I did today. This is very well written and your points are well-expressed. Please, don't ever stop writing.Best dome camera
Its an incredible joy perusing your post.Its brimming with data I am searching for and I want to post a remark that "The substance of your post is magnificent" Great work. Windows 7 Crack
Your post is very helpful to get some effective tips to reduce weight properly. You have shared various nice photos of the same. I would like to thank you for sharing these tips. Surely I will try this at home. Keep updating more simple tips like this. shiatsu massage chair reviews
Thanks for sharing such an informative and useful post. When I was a student, I suffered from many difficulties in writing an essay, then my brother suggests me to take Assignment Help in Australia from GoAssignmentHelp. I have contacted them and the result is beyond my expectations. They helped me a lot and I score good grades.
Zest Printing offers many quality book printing options which are delivered double quick time. Booklet printing comes in many sizes and forms. Select the best choice that works best for you.booklet printing
Its an incredible joy perusing your post.Its brimming with data I am searching for and I want to post a remark that "The substance of your post is magnificent" Great work.
games banat coat new
Really appreciate you sharing this blog post.Really thank you! Really Cool.Thank you ever so for you blog article.Thanks Again. Really Great.https://www.omegor.com/blog-omega-3/omega-3-cuore/olio-fegato-di-merluzzo-proprieta-benefici-
This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!real hair
I have used a lot of juicers in the past and I created this blog to help juice lovers make the right decision in choosing the type of juicer that best fit their needs. There are several good masticating juicers to choose from. man with a van moving nyc
This is really a useful information for me and looking forward to this site.The way you presented is perfectly good and understandable.Most of them are facing this same issues and thanks for this article.Expecting more article like this.Country Wine and Spirits Patron Silver Tequila
You have a genuine capacity for composing one of a kind substance. I like how you think and the way you speak to your perspectives in this article. I concur with your mindset. Much obliged to you for sharing. go ironing website
I appreciate this work amazing post for us I like it.
SEO Writing Service
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
This is extremely fascinating substance! I have completely delighted in perusing your focuses and have reached the conclusion that you are right about a hefty portion of them. You are extraordinary. voyance telephone
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info health
Our credit repair services work to fix past credit mistakes and verify credit report accuracy. Talk to a credit repair expert today! learn more
Thanks for the post and great tips..even I also think that hard work is the most important aspect of getting success infinito hoodie singapore
Great post yet I was thinking about whether you could compose a litte more on this subject? I"d be exceptionally grateful in the event that you could expound a tad bit further. Value it! cruise forum
I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report... stream TV
Great read... I really enjoyed taking a break from providing blinds installation. I figured I use this time to fix the issue I've been having on my WordPress blog. Thanks for the info!
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they've added something worthwhile to the world wide web!. GoldenSlot
I am unquestionably making the most of your site. You unquestionably have some extraordinary knowledge and incredible stories. singapore photography for proposals
I am looking to connect with clients and investors that need Funding. I offer all types of loan both fix n flip,Value or ARV of the Property, business loans, real estate loan, rehab secured and unsecured loan.
If interested kindly get back to me for more details on my terms and conditions.
We look forward to having good business relationship with you.
Wells Investment Solution.
A simple bookmarking tool that makes it easy to save, organize and share your favorite web pages. Access your bookmarks from any computer, phone or tablet. Listango works on all modern web browsers ... yify
Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on. flower delivery Munich
I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. آموزش کتیا
Great Information,it has lot for stuff which is informative.I will share the post with my friends. face fat diet
Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on. click here
I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. Manhattan Capital
thank you guys for the post, found a lot of useful information on your site!
Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you..e liquid
Well, wonderful information, from your article i learn some thing new, great information as we know we should discus such kin complicated topic as you post today this is good job, nice one..checking out
Just pure brilliance from you here. I have never expected something less than this from you and you have not disappointed me at all. I suppose you will keep the quality work going on. pregnant molly
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work بهترین وکیل چک
I felt exceptionally glad while perusing this site. This was truly exceptionally enlightening site for me. I truly preferred it. This was truly a sincere post. Much obliged!. مهاجرت به انگلستان
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. https://mothersday2018.org/
One present why galore businesses opt for postcards is because they are overmuch cheaper to be prefab and this can forbear a lot of expenses on the lengthened run. Reviews on best Web Hosting
I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. moscow dating sites free
Congrats on having such well managed site! It has good looks and contains informative content as well. We are an online platform where students check & write reviews for assignments related websites. Here you can check Allassignmenthelp reviews.
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. booklet design
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!
Do visit our website to get best essay writing service
Green juices are made with fruits and vegetables filled with antioxidants, phytochemicals, minerals and vitamins customer contact
Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks Outbound training
Voyance-retour-amour.com is a french website talking about esoterism, divinatory arts and tarot cards. The visitor can discover lot of thing and learn how to predice the futur as a true fortune-teller. The 0892 22 20 33 is a numero voyance where you can call a medium days and nights to obtain answers and predictions.
It was a decent post to be sure. I completely delighted in understanding it in my lunch time. Will definitely come and visit this blog all the more frequently. Much obliged for sharing. best packable backpack
Your website is really cool and this is a great inspiring article. Thank you so much. EMPLOYEE FRAUD
I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. top nintendo ds emulator for android
I imagine that much obliged for the valuabe data and bits of knowledge you have so given here
Add a Comment