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
-
URL structure with dash or slash
Hi, everyone Basically I am editing my website page's URL for SEO Optimisation and I am not sure which URL structure is best for SEO. The main different is the sign ( dash or slash ) before the product-code. HERE ARE TWO EXAMPLE www.example.com/long-tail-keyword-product-code www.example.com/long-tail-keyword/product-code To get more idea of my page, here is one of the product from my website : http://www.okeus.co.uk/pro_view-3.html My website is selling my own product, as a result the only keyword can be found was the name of the product and I separated different design by different code. Any experts who are willing help would be very much appreciated.
Intermediate & Advanced SEO | | chrisyu781 -
How many images should I use in structured data for a product?
We have a basic printing website that offers business cards. Each type of business card has a few product images. Should we use structured data for all the images, or just the main image? What is your opinion about this? Thanks in advance.
Intermediate & Advanced SEO | | Choice0 -
Page not ranking because of React.js ?
Hey guys, I'm struggling with this part of my website which uses react.js . My developers used this saying it's much better and much quicker (which I think so too) but we have really low traffic coming from google compared to the other parts of the website (not using react.js). Moz gives me a score of 85% for the page but we get less than 100 visits / day and we were targeting 10.000 visits/day giving the traffic of this section in our competitors website (our whole website has 60.000 visits / day). (Section is online since 3 months now) Can you help me see what is wrong there ? I'm in Belgium so we have the website in 3 languages (FR/NL/EN) but the most important ones are FR & NL. FR : https://gocar.be/fr/prix-voitures-neuves/Audi/A3/A3-Sportback/1-0-TFSI_39CER NL : https://gocar.be/nl/prijzen-nieuwe-wagens/Audi/A3/A3-Sportback/1-0-TFSI_39CER EN : https://gocar.be/en/price-new-cars/Audi/A3/A3-Sportback/1-0-TFSI_39CER Main competitors having a better ranking than us (exemple in FR) : https://www.moniteurautomobile.be/modele--audi--a3/prix.html https://www.vroom.be/fr/prix/audi-a3/citadine-2012/197 Cheers ! Jean-Philippe
Intermediate & Advanced SEO | | Gocar_be0 -
Not ranking in Google - why???
This will be a bit long, so please bare with me. I have a client in the auto parts industry who wants to rank their homepage for 13 different keywords. We are ranked first page for all keywords in Yahoo! Mexico and Bing Mexico, but not ranking first page at all in Google Mexico. My client's competitor, however, is clearly outranking my client in Google. When comparing both pages, my client's, while not 100% optimized, looks better optimized than their competitor's. Looking at all metrics using Moz, SEMRush, ahrefs, etc... my client's site looks MUCH better on all fronts. I know ranking a single homepage for more than 10 keywords is a difficult task. Our competitor is however, ranking for them, so it's not impossible. The keywords are not even that competitive according to Moz's analysis. I decided to create an optimized page for each keyword to try to rank these pages, but still my client wants the homepage to rank (again, if the competitor is ranking, then it's possible to do this) and I am afraid these pages I created could result in keyword cannibalization ultimately affecting the homepage's possibility to rank. My client had a previous SEO agency working for them and basically all they did was create fake blogs and have lots of keyword rich links directed to the site's homepage. I got the complete link profile from several tools and submitted a disavow requests for as many fishy links I could find, but that hasn't shown any results so far. Note: when looking at the competitor link profile, they have basically just a few links and no external links of real value whatsoever. My client is obviously very frustrated, and so am I. In my SEO experience, it shouldn't be such a difficult task to accomplish, however nothing seems to work even though everything seems to point that my client should rank higher. So now I'm running out of ideas regarding what to do with this site. Any insight you could provide would be SO helpful to me and my client. If needed I can provide my client's homepage URL and also their competitors homepage for you to review. i can also give you any extra information you need. Thanks a lot!
Intermediate & Advanced SEO | | EduardoRuiz0 -
Recommended URL Structure
Hello, We are currently adding a new section of content on our site related to Marketing and more specifically 'Digital Marketing' (research reports, trend studies, etc). Over time (several months, or 1-3 years) we will add more 'general' marketing content. My question is which of the following URL structures makes more sense from an SEO perspective (and how best to quantify the benefit of one over another): www.mysite.com/marketing/digital/research/... www.mysite.com/digital-marketing/research/.. Thanks, Mike
Intermediate & Advanced SEO | | mike-gart0 -
Link juice site structure?
If we have a top nav with contact us, about us, delivery, FAQ, Gallery, how to order ect but none of these we want to rank and then we have the usual left hand nav.are we wasting juice with the top nav and would we be better either removing it and putting them further down the page or consolidating them and adding an extra products tab so the product pages are first.
Intermediate & Advanced SEO | | BobAnderson0 -
Aggressive Loss in Rankings
I recently launched a website and used local directories, web directories and guest blogging as a means of getting links to the site. Within 60 days the site was ranking on the first page for a highly competitive keyword. It was hovering on the first page for about two weeks before it plummeted in ranking to near 200. I am not finding any crawl errors or duplicate content issues on the site. Could my links have caused this massive decrease in rankings?
Intermediate & Advanced SEO | | mj7750 -
URL Structure for Directory Site
We have a directory that we're building and we're not sure if we should try to make each page an extension of the root domain or utilize sub-directories as users narrow down their selection. What is the best practice here for maximizing your SERP authority? Choice #1 - Hyphenated Architecture (no sub-folders): State Page /state/ City Page /city-state/ Business Page /business-city-state/
Intermediate & Advanced SEO | | knowyourbank
4) Location Page /locationname-city-state/ or.... Choice #2 - Using sub-folders on drill down: State Page /state/ City Page /state/city Business Page /state/city/business/
4) Location Page /locationname-city-state/ Again, just to clarify, I need help in determining what the best methodology is for achieving the greatest SEO benefits. Just by looking it would seem that choice #1 would work better because the URL's are very clear and SEF. But, at the same time it may be less intuitive for search. I'm not sure. What do you think?0