WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Date removal (6 posts)

  1. Dzynit
    Member
    Posted 2 years ago #

    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/

  2. Hendison Scott
    Member
    Posted 2 years ago #

    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...

  3. alpineace@alpineace.com
    Member
    Posted 2 years ago #

    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.

  4. Hendison Scott
    Member
    Posted 2 years ago #

    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

  5. Dzynit
    Member
    Posted 2 years ago #

    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);

  6. alpineace@alpineace.com
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic