Do Structured Data Errors Hurt Your Rankings
-
-
Thank you so much! You're amazing!
-
Ok, this should fix your problem. Just add the "updated" that is bolded below. That portion of the code will look like this:
%3$s
/**
- Prints HTML with meta information for the current post-date/time and author.
- @since Twenty Ten 1.0
*/
function twentyten_posted_on() {
printf( ( 'Posted on %2$s by %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '%3$s',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '%3$s',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr( 'View all posts by %s', 'twentyten' ), get_the_author() ),
get_the_author()
)
);
}
endif;
-
I found the functions.php file, but not the content.php. I didn't see the code mentioned in the functions.php file, but could it be under another name in here?
Thanks,
Ruben
// See more at: http://techstudio.co/wordpress/loading-the-latest-version-of-jquery-in-wordpress#sthash.UWbVtIec.dpuf
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'twentyten' ),
) );
// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
// resize images
function mf_resize($c,$w="",$h="") {
echo "/wp-content/plugins/magic-fields/thirdparty/phpthumbail/phpThumb.php?src=$c&w=$w&h=$h&zc=1";
//echo bloginfo('url')."/wp-content/plugins/magic-fields/thirdparty/phpthumb/phpThumb.php?src=$c&w=$w&h=$h&zc=1";
}
// insert meta data
function insert_meta($id,$meta=array(),$panel_id=0) {
if($panel_id>0) {
$meta2=array('_mf_write_panel_id' => $panel_id,'_edit_lock' => "1289904643",'_edit_last' => 1);
$meta=array_merge($meta,$meta2);
}
foreach($meta as $key=>$m) {
update_post_meta($id,$key,$m);/echo $id." ".$key." ".$m."
";/
}
}
// widget ready
if ( function_exists('register_sidebar') )
register_sidebar();
// remove html valid. error
add_action('init', 'remheadlink');
function remheadlink() {
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
}
/* Exclude Category from Main Page and RSS Feeds. 5 6 - categs ; 4 - posts array */
function myFilter($query) {
if ($query->is_feed || $query->is_home) {
//$query->set('cat','-5,-6');
//$query->set('post__not_in',array(4));
}return $query;
}
add_filter('pre_get_posts','myFilter');if ( ! function_exists( 'twentyten_posted_on' ) ) :
/**- Prints HTML with meta information for the current post-date/time and author.
- @since Twenty Ten 1.0
*/
function twentyten_posted_on() {
printf( ( 'Posted on %2$s by %3$s', 'twentyten' ),
'meta-prep meta-prep-author',
sprintf( '%3$s',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '%3$s',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr( 'View all posts by %s', 'twentyten' ), get_the_author() ),
get_the_author()
)
);
}
endif;
/**
- Get Grandparent ID Of Current Page
- @author Bainternet
- @reference http://wordpress.stackexchange.com/questions/11665/identify-that-a-page-is-a-grandchild-page
- @param $page_id
- @return bool
*/
function get_grandpapa($page_id){
$current_page = get_page( $page_id );
if ($current_page->post_parent > 0){
//has at least a parent
$parent_page = get_page($current_page->post_parent);
if ($parent_page->post_parent > 0){
return $parent_page->post_parent;
}else{
return false;
}
}
return false;
}remove_action('wp_head', 'wp_print_scripts');
remove_action('wp_head', 'wp_print_head_scripts', 9);
remove_action('wp_head', 'wp_enqueue_scripts', 1);
add_action('wp_footer', 'wp_print_scripts', 5);
add_action('wp_footer', 'wp_enqueue_scripts', 5);
add_action('wp_footer', 'wp_print_head_scripts', 5); -
It's probably in content.php or functions.php which are located in the theme folder of your wordpress installation and are probably only accessible via ftp.
-
It is a wordpress site, and I get the fix. However, how do I replace it? I included a screenshot of all the different choices under editor, but I'm having trouble finding it. I thought it would be under post.php, but it's not there. Any ideas?
Thanks so much for the help!
- Ruben
-
Yeah, I actually just noticed that I had this issue as well. You just need to add "updated" as a class so the html for the date on your http://www.kempruge.com/suv-driving-tips/ blog should end up as:
June 19, 2014
-
I assume your site is running Wordpress Ruben? This is quite common - you should be able to find your fix here. Snippets do cause a lot of problems, especially when plugins are in use. See how you get on with that.
This error occur when Google Snippet cannot find date it was published or last updated.To solve this find,**
<span < code="">
class=
"post_date">`'j F,Y'
); ?></span <>`**
and replace it with<span < code="">
class=
"post_date date updated">`'j F,Y'
); ?>``</span <>```-Andy
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Webpage is not ranking
https://www.nextheadphone.com/oneodio-a10-hybrid-review/ I just published a new article. Keyword is : OneOdio A10 Hybrid Review Before writing the article, I researched that This is Easy keyword. I should rank as soon as I publish the article. After publishing the article my Current rank is #32 Why its not ranking? Any idea
Intermediate & Advanced SEO | | NextHeadphone0 -
A single page from site not ranking
Hello, We have a new site launched in March, that is ranking well in search for all of the pages, except one and we don't know why. This page it is optimised exactly the same way like the others, but still doesn't rank in Google. We have verified robots.txt for noffollow, noindex tags, we have verified if it was penalized by Google, but still didn't find nothing. Initially we had another site and was on the topic of this page, but we have redirected it to the new one. In case this old site was anytime in the past penalized by Google, could it be possible that the new page be influenced by this? Also, we have another site that ranks on the first position, that targets the same keywords like the page that does not rank. It was the first site we launched, so it is pretty much old, but we do not have duplicate content on them. Maybe Google doesn't like the fact that both target the same keywords and chooses to display only the old site? Please help us if you have any ideas or have been through such thing. Thank you!
Intermediate & Advanced SEO | | daniela.pirlogea0 -
Why does some sites rank with no seo
Why is it that some site rank with zero efforts? I have been working on some seo for a while on my main site and i have been getting more info competition analysis with sem and moz. Looking at the states from this website which tends to popup often in the searches on page 1-2 before my site. This site is not keyword optimized, meaning they arent even trying to rank.
Intermediate & Advanced SEO | | CooperStrzelecki
There is no content, articles etc.,
6 backlinks (nothing powerful just 2 directory links and 2 from developer)
Site really isnt even designed to get traffic as its a trade only ecommerce website
I doubt they are hiding anything as far as backlinks etc. as it will get them too many visitors they dont want
The city i am searching isnt even on the page (it is a city within a city so maybe google still relates it)
PA 24 DA 15 Now my site:
Optimized reasearched keywords
175 backlinks
All my main pages have content with images, alt tags, internal linking
full of content, blogs, videos, products (probably 4000, could a site being too big be an issue?)
Site gets regular updates
I probably have 200 citations
All the social media which gets done often
PA 32 DA 20 They do get a good bit of traffic but that is probably the only thing i would see but it would be direct traffic mostly i believe as it would be people going to order regularly since it is a print reseller. They may have some age on me 15 vs 8 years. Could it be some kind of penalty i am not sure about lingering? According to what i know to check everyything looks ok, no shady links accoding to sem. I am working more and more on all the pages but this competittion site really doesnt have crap going on probably 8 pages and 1 page does all the ordering. What the hell does google want from me exactly!0 -
Why have I lost my #1 ranking?
Hello! Ever since switching to a new website back in late 2014, my rankings have suffered. My webpage https://www.shwoodshop.com was always the #1 google position for the keywords "wood sunglasses" and "wooden sunglasses". For a while my site bounced back a forth between the #1 and #2 spots, but in the last 4 months I have been stuck with a #3 rank for both keywords. I hired an SEO company to help fix the problem but after a year of work, there was still no positive change. I have had multiple experts take a look at my site, but to no avail. All signs seem to point to a stronger, healthier site than my competition. My domain authority and page authority are much greater than the competition with the #1 and #2 rankings. I have used the On-Page grader and other tools to try and help, and even though I am getting an "A" grade, I'm still not improving my rankings. I ran a link metric comparison for my website versus the competition and attached it to this post. The main area I seem to be lacking is the Internal Equity-Passing Links. The top competitor has a ridiculous amount, which I think may be due to their use of breadcrumbs. Is this enough to make the difference? My other thought is that I could be suffering from duplicate page content. My website is setup to be "localized" via Subdirectories With gTLDs (.com/us, .com/eu, .com/au, .com/international). The on-page content is the exact same, but the prices for the products changes depending on your location. Moz shows a ton of duplicate pages due to this. Could I be getting penalized for this? I am an SEO novice and trying to learn as much as possible while investigation this issue. Any suggestions or ideas would be greatly appreciated! -Taylor wUiyU
Intermediate & Advanced SEO | | shwoodeyewear0 -
3 Pages Ranking Beside Each Other | How do I consolidate so one ranks better?
An ecommerce website I own called backyardGamez.com sells outdoor games, for example cornhole boards, bags, etc. One such product is a cornhole board carrying case. If you search the above phrase, my site has three pages that rank on the first page. The term isn't high volume, so I'm assuming that is part of the reason. Is this a good, normal thing or does this mean I have inadvertently broken up my ranking power from one powerful page to 3 OK pages? Does anyone know how I can take two of these pages and use them to make the 3rd page more powerful? For example, I would prefer 1 page ranks higher on page 1 in the serps and the other two fall a bit from supporting the other. Thanks, Adam
Intermediate & Advanced SEO | | Soft-Lite0 -
Url structure of a blog
We are trying to work out what the best structure for our blog is as we want each page to rank as highly as possible, we were looking at a flat structure similar to http://www.hongkiat.com/blog/ where every posts is after the blog/ but not in category's although the viewers can look in different category's from the top buttons on the page- photoshop - icons etc or we where going to go for the structured way- blog/photoshop/blog-post.html the only problem is that we will end up 4 deep at least with this and at least 80 characters in the url. any help would be appreciated. Thanks Shaun
Intermediate & Advanced SEO | | BobAnderson0 -
Why is this site not ranking?
http://www.petstoreunlimited.com They get good grades from the on-page tool. The links are not amazing, but are not super spammy. Yet it ranks for nothing they target Any reason why?
Intermediate & Advanced SEO | | Atomicx0 -
Why did my rankings drop?
Hi all, In July I started to re-energise my link building efforts by getting a proper campaign together to build links. Despite building about 20 new links my traffic has actually fallen. Here a a breakdown of what happen: 1)Late June I noticed my toolbar page rank up at about PR4 which, despite only being a small part of the algo, was nice to see. Early July I started my link building campaign by getting together a massive list of potential link partners by using Open Site Explorer on my competitors sites. 3)Because I'm a bit pressed for time I decided to go for the easier links first. I sorted my link list by Domain Authority and started to list on high DA directories used by my competitors. I listed on about 20 of these directories. I also livened up an old links page I'd previously hidden from the SE's because I was planning to do a bit of Link exchanging too. A few days after I started building links from these directories I noticed my traffic start to drop off gradually. I also noticed the toolbar PR go down to PR3. I decided to stop at 20 submissions because it looked like this was effecting traffic. I also removed the links page I'd livened up which produced a temporary improvement in traffic but it's since gone on to get a bit worse. Traffic is now down by about 10% on when I started buying submissions to directories. I must add that during this period we have also been taking on new clients which, as a a real estate listing site, means we put loads of content on our site for the client. That content is also on the clients website and on other competitors sites. So there would be lot's of a content that appears elsewhere on the net. Not really sure which of the two has caused the problem and not really sure how to progress. Do I remove the links on the directories? Do I wait for this newly added content to bed down so that new fresh can take it's place in our results which we rank from? Any help would be appreciated.
Intermediate & Advanced SEO | | Mulith0