Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Date removal

  • We also want to keep the dates removed. After reading the comment section here: http://yoast.com/wordpress-seo-1-2/ I added the the new filter code that was also noted in the readme as being added to the plugin
    add_filter( ‘wpseo_show_date_in_snippet’,’__return_false’);

    After reading that other user’s said this didn’t work, I searched the plugin and there isn’t any code anywhere in the plugin for that to work.

    I did find the snippet preview code under the visual editor and was able to remove the date from it by adding this to the functions.php of the theme:
    add_filter( ‘wpseo_show_date_in_snippet_preview’, false);

    But it’s more important to be able to remove the date from the search listings. Is it possible that the new code for the wpseo_show_date_in_snippet filter didn’t get committed properly to the wp codex?

    It would be great to have this feature back whether it’s a simple checkmark in the wp-admin or having to add the filter to the theme.

    The biggest issue on the dates is on the shopping sites. We don’t want dates showing on the product search results.

    Thank you very much for your time and the great work you’ve done on this plugin – I’ll offer any help needed to work on this issue.
    Dzynit

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • This page – http://yoast.com/wordpress-seo-1-2/ says this:

    by Joost de Valk on 14 June, 2012 at 10:13
    Well you can, with the new 1.2.2 release, just add the following to your theme’s functions.php:
    add_filter( ‘wpseo_show_date_in_snippet’,’__return_false’);
    And it’ll not show the dates 😉

    but that does not work…

    Have you searched for your listings to see if the date was included in Google’s snippet?

    I found a listing for something I posted yesterday and the Google snippet did not contain the date.

    It would be nice if there was an option to disable the date in the snippet preview, because it’s taking up space that could be used to squeeze an extra word in. (See Below)

    “Meta Description: > The meta description will be limited to 140 chars (because of date display), 140 chars left.”

    I run a wordpress multisite network and use a variety of themes. I also use the WP Date Remover plugin.

    thanks- I’ve confirmed that now, NO the date is not being included in snippets, and the only place it’s seen is in the WP admin in the WP SEO fields under snippet preview

    Thread Starter Dzynit

    (@dzynit)

    As Scott said, so far the dates haven’t been going into the google listings. It was a concern to post here on it though after reading other user’s comments in that link above.
    Hopefully the people with those comments were either bothered by the preview snippets or had actually not removed the dates from their theme templates.

    Just to be helpful, if it bothers the person writing the posts to see that date in the snippet preview, adding this to the theme functions.php removes that and prevents the confusion: add_filter( ‘wpseo_show_date_in_snippet_preview’, false);

    To Yoast,

    Thanks for the awesome support and including the show date in snippet preview option in snippets and adding the Google+ Google Publisher Page: in the Homepage tab. I will definitely contribute when I receive my next check from Google.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Date removal’ is closed to new replies.