How I fixed the ‘Structured Errors’ in ‘Iconic One’
After I changed the theme of this site to ‘Iconic One’, Google Analytics started to say that there were a lot of ‘Structured Errors’ in this site, which were “missing update ” and “missing author”.
I spent a lot of time finding the way to fix this problem and finally I got it. So I’m gonna share it here.
First, I notice that each single post itself has no errors. The problem was in the ‘home page”, which has excerpts from recent posts and those excerpts don’t have “update” and “author” information.
Then I had to find find the easiest way to fix it, because I’m a lamer. I googled and checked a lot of sites. The most helpful one was this;
This is how I fixed it.
1: You need to add a few sentences to “content.php”. Not “Index.php” or “Single.php”. Find the ‘footer’ part in the latter half.
2: Add these sentences as indicated blow;
<div style="text-align: right;">
Last Modified : <span class="date updated"><?php echo get_the_date(); ?></span>
by <span class="vcard author"><span class="fn"><?php echo the_author_posts_link(); ?></span></span>
What you do is that you add “updated” and “author” at the end of each excerpt. You also add those to each single post.
They are aligned right so I don’t think they don’t ruin the beauty of this theme.
I believe it’s very easy, please try it on your responsibility. It is always a must to back up before you try.
I hope this will help you.