Removing date from meta descriptions

  • Anonymous

    #4830

    If anyone here is using WordPress SEO by Yoast, you may not realise that the latest big update no longer allows you to remove the date from the beginning of the meta descriptions of posts (or other pages). Instead, it includes the date by default, which is a big problem for people like myself who wrote longer meta descriptions because they had the date removed, since all our descriptions are now pushed beyond the search engine character limit.

    So, how can I remove dates from the meta descriptions of posts etc in Graphene? I use a child theme.

    Thanks.

    Anonymous

    #29435

    Ok, worked it out. You need to add:

    add_filter( 'wpseo_show_date_in_snippet','__return_false');

    To the child theme’s functions.php.

    Hopefully this will help anyone who’s using this plugin.

    Anonymous

    #29436

    Thank you for posting the tip!

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.