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
-
International Country URL Structure
Hey Guys, We have a www.site.com (gTLD) site, the primary market in Australia. We want to expand to US and UK. For the homepage, we are looking to create 3 new subfolders which are: site.com/au/ site.com/uk/ site.com/us/ Then if someone visits the site.com redirect based on their ip address to to the correct location. We are also looking to setup hreflang tags between the 3 sub-folders and set geo-location targeting in google search console at sub-folder level. Just wondering if this setup sounds ok for international SEO? Cheers.
Intermediate & Advanced SEO | | pladcarl90 -
My homepage ranks but not my target page.
Hello, I have an issue with one my pages. I have a page about "Bike tours in France+ exclusively that has been existing for almost 8 years. Since day 1 I changed the web address a few times but I have the necessary redirect (actually only 1). I can't find this page (pretty much since day 1) on the keyword "Bike tours France" and I am wondering why ? However, I can find my homepage rank on "Bike tours France" even though it doesn't only talk about "Bike tours in France" instead of my page which is only about "Bike tours in France". I am wondering why only my homepage shows and not the other one. For information, I have about 30 % of my external links that say Bike tours France and that go to my homepage because when I started my website I was only doing "Bike tours in France" Could google say we don't care about your page about "Bike tours in France" because you got so many links to your page with the keywords "Bike tours France" and could it be why I don't see it rank. However, it is index but doesn't show up in search results ? Or could it be the fact that made many content changes over the years on this page and that google is saying I will rank you but it will take years because of so many changes. What can I do to make my page about "Bike tours in France" appear in search results for the keyword "Bike tours in France". Thank you,
Intermediate & Advanced SEO | | seoanalytics0 -
Ranking Above sub-domains
So I work for a company that has a very successful affiliate that operates under a third level domain name such as "region.company.com". Their SEO practices are very good and they rank highly in keyword searches. However "company.com" does not even though it is not a subdomain. Even after optimizing the company.com's pages etc, the regional sub domain ranks much higher for keywords and the main company fails to rank at all. Is Google discounting the main company's page? Is it a matter of trust or time? or is it something else? How can I get Google to prioritize the main company website rather than a lower level domain affiliate?
Intermediate & Advanced SEO | | Resolute0 -
Why is my ranking not improving???
Our site is about 4 months old now, although the domain is older. We are adding fresh new content, building good facebook/twitter/Goolge+ and undertaking good PR - but our ranking does not seem to be improving at all. Have I missed something obvious???? Thanks.
Intermediate & Advanced SEO | | jj34340 -
Why Keyword Ranking Fluctuate?
Hi All, I have a shoes website and I am working on it from last four months. I am targeting four main keywords but I have some issues with ranking. First one is that keywords ranking fluctuate many time a day but they remain on the same page. Second one is that these keywords remain on the same page for 2 to 3 week and than suddenly they drop down in the ranking. Please help me regarding these issue. Waiting for replies. Thanks
Intermediate & Advanced SEO | | Cuttingseo0 -
Ranking Ranking Factors!
When you look at the keyword analysis, you see the following ranking criteria: - | Page Authority | Page Linking Root Domains | Domain Authority | Root Domain Linking Root Domains | How do you rank the importance of each of these factors from 1-4? For example, PA, PLRD, RDLRD, DA Please explain. How many of these factors do you normally need to get within top 5?
Intermediate & Advanced SEO | | inhouseseo0 -
Quick URL structure question
Say you've got 5,000 articles. Each of these are from 2-3 generations of taxonomy. For example: example.com/motherboard/pc/asus39450 example.com/soundcard/pc/hp39 example.com/ethernet/software/freeware/stuffit294 None of the articles were SUPER popular as is, but they still bring in a bit of residual traffic combined. Few thousand or so a day. You're switching to a brand new platform. Awesome new structure, taxonomy, etc. The real deal. But, historically, you don't have the old taxonomy functions. The articles above, if created today, file under example.com/hardware/ This is the way it is from here on out. But what to do with the historical files? keep the original URL structure, in the new system. Readers might be confused if they try to reach example.com/motherboard, but at least you retain all SEO weight and these articles are all older anyways. Who cares? Grab some lunch. change the urls to /hardware/, and redirect everything the right way. Lose some rank maybe, but its a smooth operation, nice and neat. Grab some dinner. change the urls to /hardware/ DONT redirect, surprise Google with 5k articles about old computer hardware. Magical traffic splurge, go skydiving. Panic, cry into your pillow. Get job signing receipts at CostCo Thoughts?
Intermediate & Advanced SEO | | EricPacifico0 -
Do pages with irrelevant keywords hurt the domain overall for ranking for relevant keywords?
I have been doing SEO for the University I work at. We are optimizing our degree pages on a page-by-page basis. So hypothetically we have a page optimized for "online accounting degree" and another for "online marketing degree", etc. Although our focus is on specific page optimization, we hope the by-product is that the whole domain will start to rank better for "online degree". First of all, is this a reasonable expectation? Second, if this IS the case, will pages full of irrelevant keywords hurt the overall strategy? For example, our registrar and financial aid PDFs that are full of legal/financial mumbo-jumbo. Are these lowering our keyword density of relevant keywords across the domain?
Intermediate & Advanced SEO | | SNHU0