Forum

Thread tagged as: Problem, Meta

Remove date stamp appearing in Google search result meta description

I have set up editable regions for the meta tags (title, description and keywords) for my pages (not blog posts) using the default "text" template, and all works well except Google is adding a date before the description in its search result - which would be OK for most blog posts but not good for e.g. the site home page.

It seems this is a common problem in Wordpress with suggestions that Google is picking up a date stamp from elsewhere on the page, with various fixes suggested online... but is there a way of preventing this in Perch?

The home page does include a "perch_blog_custom" to show the latest three posts - which include post date stamps (which I don't really want to have to remove), but it seems Google is using the date from the earliest post to display in the home page search result description.

Thanks Bill

Page code for metas:

<title><?php perch_content('home-meta-title'); ?></title>
<meta name="description" content="<?php perch_content('home-meta-description'); ?>">
<meta name="keywords" content="<?php perch_content('home-meta-keywords'); ?>">

Diagnostics:

Perch: 3.0.11, PHP: 5.5.9-1ubuntu4.21, MySQL: 5.5.55, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (3.0.11), assets (3.0.11), categories (3.0.11), perch_blog (5.6.1)
App runtimes: <?php $apps_list = [ 'perch_blog' ];
PERCH_LOGINPATH: /cms
PERCH_PATH: /var/www/vhosts/promotionalmugs.co.uk/httpdocs/cms
PERCH_CORE: /var/www/vhosts/promotionalmugs.co.uk/httpdocs/cms/core
PERCH_RESFILEPATH: /var/www/vhosts/promotionalmugs.co.uk/httpdocs/cms/resources
Image manipulation: GD
PHP limits: Max upload 10M, Max POST 16M, Memory: 128M, Total max file upload: 10M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: promotionalmugs.co.uk
DOCUMENT_ROOT: /var/www/vhosts/promotionalmugs.co.uk/httpdocs
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Bill Citrine

Bill Citrine 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It could be the microformats class names you've included in your template. It looks like you're making use of hentry on the blog post listing in the sidebar, and Google might be picking that up.

Obviously that's generally a good thing - it shows your content is well structured and properly marked up and may well be giving you a tiny boost in the rankings.

Ah! Yes, thanks Drew, that will be it. Thanks for your help.