Show date in Google custom search results

Show date in Google custom search results

mdiessnermdiessner Posts: 34Questions: 0Answers: 0
edited January 2013 in Blog
Hi Alan,
Would be nice if the google custom search results on the FAQs etc. showed a date stamp - makes filtering for newer results easier.
Just a thought.
Best,
Martin

Replies

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Sounds like a good idea - thanks for suggesting it. Do you, or anyone else, know how to enable that in custom search? I've tried looking through the settings before, particularly trying to alter weight for different pages, and found the customisation really lacking.

    Allan
  • mdiessnermdiessner Posts: 34Questions: 0Answers: 0
    Thanks. I have not found anything in the documentation, but tried a custom search based on one of my community blog sites (campsbaycommunity.com) and date shows there automatically. The custom search is not implemented on the site but you can use this code for testing:

    [code]

    (function() {
    var cx = '012015551971717343306:ocnwi9mgh_w';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
    '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
    })();


    [/code]

    The site is on WP and somehow google picks it up.
    Maybe output the date stamp in your description or so. Not ideal and strange that Google does not offer this in the (free) version. Have not checked the commercial version yet.
    Thx
    Martin
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Thanks very much - I'll look into this in more detail as part of the site wide upgrades I'm planning :-)

    Allan
This discussion has been closed.