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
-
Structure of HTML Page
Hello, Is is true that search engine give more value to some part of the page than other ? Is only the main content considered ? or are the other also given weight but very small weight ? If I have div in the main content as those considered par of the main content or no ? Thank you,
Intermediate & Advanced SEO | | seoanalytics1 -
Keyword Ranking Fluctuations
Hi Guys I am currently working on a website where one of the keyword targets is fluctuating. The keyword is fluctuating between page 2 and page 5. What makes this strange is that we are not experiencing the issue with any other keyword targets. They are all ranking fine. It is only 1 keyword. The keyword target happens to be the main homepage keyword target - not sure if this makes a difference? The homepage targets 2 keyword e.g. Business Offices & Accessories. The homepage ranks perfectly fine for e.g. Business Accessories but is fluctuating for e.g. Business Offices! Very strange. What makes it even stranger - the keyword variations of the fluctuating keyword e.g. office for business - these variations are all fine and not fluctuating. Its only 1 keyword. If anyone has any ideas or feedback that would be great! Thanks, Duncan
Intermediate & Advanced SEO | | CayenneRed890 -
Page Rank Worse After Optimization
For a long time, we had terrible on page SEO. No keyword targeting, no meta titles or descriptions. Just a brief 2-4 sentence product description and shipping information. Strangely, we weren't ranking too bad. For one product, we were ranking on page 1 of Google for a certain keyword. My goal to reach the top of page 1 would be easy (or so I thought). I have now optimized this page to rank better for the same keyword. I have a 276 word description with detailed specifications and shipping information. I have a strong title and meta description with keywords and modifers. I have also included a video demonstration, additional photos and an PDF of the owners manual. In my eyes, the page is 100% better than it ever was. In the eyes of MOZ, it's better also. I've got an A with the On-Page Grader. Why is this page now ranking on page 8 of Google? What have I done wrong? What can I do to correct it?
Intermediate & Advanced SEO | | dkeipper0 -
How should i best structure my internal links?
I am new to SEO and looking to employ a logical but effective internal link strategy. Any easy ways to keep track of what page links to what page? I am a little confused regarding anchor text in as much as how I should use this. e.g. for a category page "Towels", I was going to link this to another page we want to build PA for such as "Bath Sheets". What should I put in for anchor text? keep it simple and just put "Bath Sheets" or make it more direct like "Buy Bath Sheets". Should I also vary anchor text if i have another 10 pages internally linking to this or keep it the same. Any advise would be really helpful. Thanks Craig
Intermediate & Advanced SEO | | Towelsrus0 -
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 -
How to rank high on Bing?
Today, I was checking Google Analytics for my website. I found too many variation in Visits between Google & Bing. I can understand that, We are not getting specific visits from Bing due to bad ranking. Then, I have done detail R & D + read few useful articles to get it done. I found such a important discussion on Bing forum which is associated to draft on page. I also checked Bing webmaster tools to know more about my website. I found that, crawling from Bing is really slow and let duane know about it via Twitter. I have read Bing rankings cheat sheet. But, I am really confuse after reading it. Because, I am following Google webmaster guidelines as well as Bing webmaster tools guidelines. So, How can I improve my performance over Bing? Is there any rock solid method for Bing like Google which may help me to achieve milestone? I have one request for Rand to write down marathon blog post to rank high on Bing....
Intermediate & Advanced SEO | | CommercePundit0 -
Strange Ranking Fluctuation - Some Predictions?
My client is the green line currently on 3 & 4. The pages that rank 3 & 4 are 3 -> home page targeted to main keyword 4 -> specific service page targeting same main keyword as home page (a bit of cannibalization) The competitor targets other keyword as their main keyword. The 1 & 2 position is taken by him but with 2 different sites (2 sites -> 1 owner). They have a high pa & da but is from gaming websites and stuff while my client has targeted good links. Any predictions... would the green go back again ? 🙂 IuVio.jpg
Intermediate & Advanced SEO | | mosaicpro0 -
Could adding canonical tags to large Ecommerce site ever hurt rankings? Temporarily?
We have a really large site we're working on who's product pages rank well for the most part but also have multiple products listed in different categories with different URL's. I'm assuming there's no downside to adding canonical tags to these right? Its peak season so I don't want to do anything that could, even temporarily, bring down their rankings. Thanks!
Intermediate & Advanced SEO | | iAnalyst.com0