How to Stop Google from displaying the post date in the Search Results

Google shows the date next to your post because the date is in your WordPress Loop.  If your date shows on the page may show in Google SERPs.  You can remove the date or the time in your WordPress Loop and replace it with a Javascript call for the date that Google Bot won’t read.

Capture3

Replace This

<?php the_time('F jS, Y') ?>

With this

<script language="javascript"
type="text/javascript">document.write("<?php
the_time('F jS, Y')
?>");</script>

I owe the credit for this idea and the code to Quicksprout.com.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.