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
-
Content change and variations in ranking
Hello, I have create a new webpage and asked google in the webmaster tool to crawl it. Within minutes it is ranked at a certain spot. I did make changes to it to increase the ranking and right away I could see variations in ranking either up or down ? I have done the same same thing for a page that has been existing on my website for many years. I changed the content, asked the webmaster tool to re-crawl it. It got the new content within minutes but the ranking doesn't seem to change. Maybe my content isn't good enough but I doubt. Could it be that on old pages it takes a couple weeks to see ranking changes whereas on new page it is instantaneous. Has anyone experienced something similar ? Thank you,
Intermediate & Advanced SEO | | seoanalytics1 -
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 -
LinkedIn 999 HTTP Errors
I am working on a website, https://linkedinforbusiness.net and a ton of 999 HTTP errors have only now surfaced. I would venture from reading the "Request denied" error in the log, LinkedIn means to block BLCs attempts to check those links. It might be because the site has a lot of LinkedIn links; maybe they find it suspicious that the server is sending a lot of requests for their links. How do you see this? Any fixes? What level of harm do you think it brings to the site? I have removed all similar links to LinkedIn from my site to avoid this (https://www.hillwebcreations.com). However, this isn't so easily done for LinkedIn For Business, as her work in all about helping businesses and individuals optimize their use of LinkedIn.
Intermediate & Advanced SEO | | jessential0 -
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 -
Recovering from Programmers Error
Hey Everybody! Last year one of my bigger sites hit a snaffu. I was getting about 300k + hits a day from google, and then, when a developper released an update with a robots.txt file that basically blocked google from the entire site. We didn't notice the bug until a few days later, but by then, it was already too late. My google traffic dropped to 30k a day and I've been having the hardest time coming back ever since. As a matter of fact, hundreds of sites that were aggregating my content started outranking me for my own terms. For over a year, I've been working on building what I lost back and everything seemed to be coming together. I was back at 100k+ hits a day Until today... My developpers repeated the exact same error as last year. They blocked google from crawling my site for over 5 days and now I'm down to 10k se hits a day. My question : Has anyone encountered this problem before and what did you do to come back?
Intermediate & Advanced SEO | | CrakJason0 -
Will ranking be improved or hurt by changing 1/5 of part numbers to key words
Note: I bold major content for your quick skim for your convenience. Does this help you decide if its a fit for your response? My site has been devastated by the Panda or unknown reasons so I need to think outside the box. I distribute industrial products with average brand recognition. I only have about 5 competitors selling this same brand. My other brand competitors are billion dollar companies that pay a lot for PPC and have sites with 10 times the product offering. Since my brand recognition is not as important as the function.I'm thinking about changing the part numbers to reflect function. This will affect about 1/5of the parts ( about 500 out of 3,000 parts) . My concern is will ranking be hurt or helped by changing these parts with these strong keywords in front of the part for such a high % of the site. The strong keywords cost $10 for a chance at a $200 sale with repeat business. Example: Current part is: 10-10 Black Plastic; which is a Big Red Truck with my brand part # as 10-10 and comes in different colors of plastic. . Keyword is Big Red Truck. I would like to put my manufactures brand in the description. My same brand competitors sell 10,000 parts and my logic is that if I have the brand in 1/5 of my parts ranking would be improved because of the % of brand per the site versus my same brand competitors.. So I would change the part # to : **Brand 10-10-Black Plastic Big Red Truck ** In conversation I would state the part as: Brand: 18 characters, Part #: 8, Material:12, Keyword: 27 If the keyword should be first I could change to: K,B P,M. Which is recommended?
Intermediate & Advanced SEO | | Wales0 -
Key page of site not ranking at all
Our site has the largest selection of dog clothes on the Internet. We're been (every so slowly) creeping up in the rankings for the "dog clothes" term, but for some reason only rank for our home page. Even though the home page (and every page on the domain) has links pointing to our specific Dog Clothes page, that page doesn't even rank anywhere when searching Google with "dog clothes site:baxterboo.com". http://www.google.com/webhp?source=hp&q=dog+clothes+site:baxterboo.com&#sclient=psy&hl=en&site=webhp&source=hp&q=dog+clothes+site:baxterboo.com&btnG=Google+Search&aq=f&aqi=&aql=&oq=dog+clothes+site:baxterboo.com&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=f4efcaa1b8c328f Pages 2+ of product results from that page rank, but not the base page. It's not excluded in robots.txt, All on site links to that page use the same URL. That page is loaded with more text that includes the keywords. I don't believe there's duplicated content. What am I missing? Has the page somehow been penalized?
Intermediate & Advanced SEO | | BBPets0 -
Do interstitials hurt SEO?
If you go to www.homeportfolio.com and click on one of the links in the footer. you'll notice you are presented with an interstitial. Can you tell me if that hurts our SEO and if we lose any link juice or suffer in any other way as a result of this linking method? my main concern is whether having anchor text that says "bathroom ideas" that goes to an interstitial that doesn't mention bathroom ideas is non-relevant... even if it refreshes 12 seconds to a page that is.
Intermediate & Advanced SEO | | KaplanSEM0