WXforum.net
May 18, 2013, 05:17:26 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6609  •  Posts: 178147  •  Topics: 18095
Please welcome TargY, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Google Search "date in site description wrong"  (Read 1194 times)
0 Members and 1 Guest are viewing this topic.
ALITTLEweird1
Mark
Forecaster
*****
Online Online

Posts: 402



WWW
« on: November 04, 2011, 06:47:05 PM »

When a search is done for my site, theres a date next to it. Pic Attached below. Google is picking up the date from my page for my record low wind chill. In the google search, it looks like my page hasnt been updated since 2008, which doesnt look good.  Anyone know of a work around so the date doesnt show in the google search? Thanks.
« Last Edit: November 05, 2011, 08:15:30 PM by ALITTLEweird1 » Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
kc4kqe
Member
*
Offline Offline

Posts: 32


KC4KQE


WWW
« Reply #1 on: November 04, 2011, 08:04:25 PM »

I'll be very interested to see if anyone has a better answer for this, because this is an often-discussed quirk with dates in google SERP.

Here's a video from a Google-dude discussing this very matter.  Short version: Google with (likely) outsmart anything you try to do to change or remove the displayed date, and decide on it's own what to display, so good luck.  Not entirely helpful, I know.

You can find many similar discussions searching for "dates in google SERP" or similar.

Logged
ALITTLEweird1
Mark
Forecaster
*****
Online Online

Posts: 402



WWW
« Reply #2 on: November 04, 2011, 08:16:49 PM »

Ive been doing a lot of reading on this, and thats what Ive came up with too. I just found this... but not sure if it would work or not...

Quote
Remove Date From Meta Descriptions- a simple solution
 
When I looked into source code in single.php, I noticed that automatically generated date has been included in a single div in the HTML header, just under the title, as below:
 
<div class=”post-meta-data”> Added <?php the_time(‘M j, Y’);?>, Under: <?php the_category(‘,’)?></div>
 
So what to do with this piece of annoying little code…
 
Google is not able to read pictures nor some javascripts, so if I don’t want Google to read the date, let’s put it into javascript and the job should done (at least for awhile).
 
Here is how I dealt with it:
 <div class=”post-meta-data”> Added <script language=”javascript” type=”text/javascript”> document.write(‘<?php the_time(‘j’) ?>’); </script> <?php the_time(‘M Y’) ?> , Under: <?php the_category(‘,’)?> </div>
 
after which I resubmitted Sitemap.
 
When Google started crawling my pages and caching their new versions, viola! The dates for my posts Were GONE! Happy days:) (as I could not sleep because of that!)


Also, I wonder if you could trick google if you were too place a few tags at the top of your page with the current date, if it would pick that up first.
Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
ALITTLEweird1
Mark
Forecaster
*****
Online Online

Posts: 402



WWW
« Reply #3 on: November 05, 2011, 08:15:39 PM »

In my top.php, by my page description, would there be a way to add a tag to show the current date without it displaying on my page? I've tried a few things, but either get an error or the tag doesnt work at all. Thanks..

Code:
<?php
if( isset ($DESCRIPTION) ) {
echo '    <meta name="description" content="' $DESCRIPTION "\" />\n";
} else {
echo '<meta name="description" content="See live weather from Snoqualmie, Washington. Includes forecasts and actual weather conditions updated every few seconds." />' ."\n";
               
}
                
           
?>




Logged

"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + 1-wire Lightning + 1-Wire UV + Logitech Quickcam Pro 9000
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.097 seconds with 19 queries.