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
-
Working on new link structure
Hello Mozzzzzzzzzzz I'm currently working on the new link structure for our website. We currently organize our content in sub folder =Main category
Intermediate & Advanced SEO | | floaumet
= = Sub category
= = =Specialty
= = = Product main name
= = = ==Product specific name
= = = == =Manufacturer Each of them has some potential strong KW and I will be happy to use it on the URL. URL are more than 50 kw long when I use all This are very niche item for which people may refer to them through different names (potential folders) My current concerns will be Should we make long url respecting the structure (Main category)/(Sub category)/(Specialty)/(Product main name)/(Product specific name)/(maufacturer) Should I combine some like (Main category)/(Sub category)/(Specialty)/(Product main name)/(Product specific name)-(maufacturer) Should I keep them simple /(product_main name) Should I keep the main folders just to display the articles belonging to this category (Main category)/(Sub category)/(Specialty)/(Product main name) and then keep the product under a sub folder only? Any other idea?0 -
SEO rank down 35%
So I recently switched from an Opencart website to a Magento 2 website and my rank has dropped by 35% two weeks later, this is bad news. My old Magento website was 5 years old and was in desperate need of an upgrade, hence the Magento 2 site. I realised today that the canonical URLs on my stores were set to the individual stores as opposed to one store, thus I expect resulting in duplicate content issues (even though Google Webmaster Tools didn't show it). I'm just wondering if anyone else can see something I may be missing? My sites are: thespacecollective.com (primary) thespacecollective.com/us/ (canonical to primary) Thank you!
Intermediate & Advanced SEO | | moon-boots0 -
Search engine keyword rank - easiest way to check the keywords that rank across website
What is the best keyword ranking tool you have used? I have used various tools by which I am expected to identify and input the keyword I want to track... However, recently I was introduced to Searchmetrics, which I think automatically pulls in the keywords a website ranks for, without the need for manual input from the SEO (I haven't used this tool yet, so apologies if I am incorrect!). Do any other rank trackers work like this? Thanks, Luke
Intermediate & Advanced SEO | | McTaggart1 -
Copyright Theft and Google Rankings
Here is another tough one we've been dealing with. We publish a niche book. For a decade we kept the information offline (no e-books). However, it was widely scanned and reproduced online. We've filed dozens of DMCA complaints over the years, but have found trying to rid the internet entirely of these infringing pages to be futile. We get 1 closed and find 3 more. Two years ago we decided to put the information online ourselves, to generate an official community for our work it instead of "fighting it". We built a full site with hundreds of pages from the book for readers to use, free. Google indexed us, and we followed basic SEO... But in spite of a prime aged domain and a lot of links, we are literally BURIED in google. There are dozens of complete garbage spam sites that rank way higher than us. I understand ranking takes time, and the niche is competitive. But the low quality landing pages that are ranking above us is just too confusing. We fear our work has been indexed by google so much over the years on other sites they will never connect it to us. We'll always be buried on page 14 as another scrape. What would you do to correct this for a client? Could you?
Intermediate & Advanced SEO | | RetBit0 -
Not Ranking - Any Tips?
Hi guys, I have a client site that I've recently come onboard with that was published late last year, not really optimized for anything, and in a moderately, but not very, competitive, search space. Early April we optimized the home page and a couple of other pages and have since built about 5-6 (high quality, partial match) links to it, and a press release was done mid last month. The only other thing we did was change the site from non-www to www and set this as the preferred domain in Search Console. Over 6 weeks since that all began, and we're still not on the radar at all for any of our main keywords - nowhere. The only thing we are really ranking for is our brand name, but this is the wrong (press release, not home!) page, and it's bouncing a lot. All of the pages seem to be indexed, and we are ranking for one other (inconsequential) keyword, but 99 is the highest it has reached. An SEO friend told me to build some citations, but this is not a local business, nor are we trying to rank locally. Can anyone please suggest why it might be taking so long, and what else I could try? I imagine more links will help, but results from our outreach are hard to predict, so if there were another safe link type that could help me figure out whether this domain is in trouble or not ASAP, that would be ideal. Thanks very much in advance for any help you can provide. Ulla
Intermediate & Advanced SEO | | Ullamalm0 -
Link Juice + Site Structure
Hi All, I have attached a simple website model.
Intermediate & Advanced SEO | | Mark_Ch
Page A is the home page attracting 1000 visitors per month.
One click away is Page B with 400 visitors per month, so on and so forth. You get an idea of the flow and clicks required to get to various pages. I have purposely placed Pages E-G to be 3 clicks away as they yield very little traffic. 1] Is this the best way to distribute link juice?
2] Should I point Pages C + D back to page A to influence its Page Rank (PA) Any other useful advice would be appreciated. Thanks Mark vafnchI0 -
What next to help with my rankings
I'm after a fresh set of eyes and any suggestions to help me with my site on what next I should be doing to help increase rankings. The site is: http://bit.ly/VR6xIm Currently the site is ranking around 9-11th on google.co.uk for it's main term which is the name of the site. The site is around a year old, when it launched it went initially up towards positions 3-5 but has since settled at around where it is now. I have a free tool webmasters can use to implement our speed test into their sites which also includes a link back to our site in it to recognise that we are providing the tool for free, I periodically change the link achor text so it is not always the same anchor text that every site uses. Is there anything obvious I should be doing or that is missing that would help with my rankings? *Just as a note, I am not after a review on the actual speed test on the site, a new one will be developed to help further increase accuracy.
Intermediate & Advanced SEO | | Wardy0 -
Design features as a ranking factor?
i created a new design of my website, very clean and highly orientated towards conversion. its a far better looking site than the old one but the navigation is almost the same. a few days after i uploaded the new site we were ranked number 1 on the biggest keyphrase in my industry. Does google crawl design feature, maybe with something like conversion heat mapping software and include that as a ranking factor? love your thoughts on this one.
Intermediate & Advanced SEO | | corgi2