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
-
Does having Multiple Similar Topic pages hurt my ranking?
Hi, We have an ecommerce store and currently have topic pages setup for each category/location combination, each topic page lists relevant products available for sale, so for example Most Popular Birthday Party products in UK
Intermediate & Advanced SEO | | cmavroudisyahoocom
Most Popular Birthday Party products in London
Most Popular Birthday Party products in Manchester We are now looking at ways of capitalising on longtail keyword searches and a potential solution is to expand the number of Topic Pages/Location combinations so for example Most Popular Birthday Party products in UK
Cheapest Birthday Party products in UK
Birthday Party products for small groups in UK
Birthday Party products for large groups in UK
Children Birthday Party products for in UK
etc In general would this be a positive or negative thing to do for our site to give each longtail keyword its own dedicated topic page (given that our crawl budget is not necessarily high). Or should we just try to add longtail keyword to the original topic page itself and make that one rank better? Thanks0 -
OK to have multiple local business structured data on one website?
Hello there, I'm working on implementing local business structured data for a website but we have multiple offices. Is it okay from a Google perspective to add different local business data on different pages of the website, or can I only use one set of local business data site wide? Many thanks, Gill.
Intermediate & Advanced SEO | | Cannetastic0 -
Site Structure - Is it ok to Keep current flat architecture of existing site pages and use silo structure on two new categories only?
Hi there, I have a site structure flat like this it ranks quite well for its niche site.com/red-apples.html site.com/blue-apples.html The site is branching out into a new but related lines of business is it ok to keep existing site architecture as above while using a silo structure just for the two new different but related business? site.com/meat/red-meat.html site.com/fish/oceant-trout.html Thanks for any advice!
Intermediate & Advanced SEO | | servetea0 -
Is the image property really required for Google's breadcrumbs structured data type?
In its structured data (i.e., Schema.org) documentation, Google says that the "image" property is required for the breadcrumbs data type. That seems new to me, and it seems unnecessary for breadcrumbs. Does anyone think this really matters to Google? More info about breadcrumbs data type:
Intermediate & Advanced SEO | | Ryan-Ricketts
https://developers.google.com/search/docs/data-types/breadcrumbs I asked Google directly here:
https://twitter.com/RyanRicketts/status/7554782668788531220 -
Something is killing my rankings
Hello, I'm in the process of re-doing the following two domains: www.musillawfirm.com and www.melbourneduilawfirm.com because something absolutely plummeted my rankings. Any specific thoughts on why the sited could have gone from top 10 to being virtually deleted? Thank you in advance.
Intermediate & Advanced SEO | | musillawfirm0 -
Site Structured Navigated by Cookies
Is it advisable to have a site structure that is navigated via URLs rather than cookies? In a website that has several location based pages - each with their own functions and information? Is this a SEO priority? Will it help to combat duplicate content? Any help would be greatly appreciated!
Intermediate & Advanced SEO | | J_Sinclair0 -
What is wrong with my once highly ranked site?
Hello, I'm really desperate for some help. I believe I've been hit by Panda as traffic started diminishing late March for my 6 year old website. I've never had a sharp drop, only gradual. I've lost a load traffic since then. I did change shopping carts in June since I had a a canonical issue from my old cart that couldn't be corrected. The old cart also did not allow me to have unique product titles and the urls were garbled with letters, numbers, etc... I know Panda did not like that. I've made several changes (cleaned up broken links, added more content to my site, added Disallow: /search/ and Disallow: /search to my robots.txt file to avoid duplicate content from my search box.) My most prized keywords (tutu and tutus) are on page 15 or so of Google now, when they used to be on page 1 or 2 at the worst. Other good ones are slipping too. I do need to hire an SEO to optimize my titles eventually as I believe my they are still a bit stuffed but before I do that, I am just trying to get the other stuff done first. My main questions are this... Do any of you see something else that looks bad to you in the eyes of Google? I'd love the cold, hard truth as I'm pretty desperate for my site to recover, if at all possible. Thank you in advance! Here is my site: http://alturl.com/mvmux
Intermediate & Advanced SEO | | tutugirl0 -
Ranking
Hi All, I have been working on a car insurance site which targets US market. we have been doing all types of links to the site like - good related directory links, related blogpost and reviews. the site is updated daily with a fresh unique content. what more is needed to get it to the first page. we are currently ranking in the range of 40 - 50 on the page 4 or page 5. we have also recently done a redesign with a new cms, done a good press release but not seeing much of changes. please if anyone in the same industry or with some experience can suggest us. we are using all white hat seo & I can understand the amount of competition in this niche. Thanks
Intermediate & Advanced SEO | | Markyseo0