• Resolved yydevelopment

    (@yydevelopment)


    Hey, I don’t want to show the blog posts datePublished and dateModified.

    In the past i used this code to remove it:

    add_filter( 'wpseo_og_article_published_time', '__return_false' );
    add_filter( 'wpseo_og_article_modified_time', '__return_false' );
    add_filter( 'wpseo_og_og_updated_time', '__return_false' );

    Seems like in one of your updates it stoped working.
    Is there other way for me to diable the dates on blog posts?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Whereas Yoast SEO does include a function to show/hide the date, this is not the date that Google is displaying. The Yoast SEO date setting only affects the snippet preview you see in the Yoast SEO meta box when you are editing the page, so unfortunately will not modify the appearance of the date shown in the Google results. ​What causes the date that you are seeing in Google is due to both WordPress and sometimes it’s themes automatically adding hatom microformats to your posts/pages. We also have additional information on this topic at the following link: ​https://yoast.com/help/date-appears-search-results/

    There is currently no function available in the Yoast SEO plugin to remove the date that you see in the Google results. ​However, there are some plugins available in the WordPress repository at https://ww.wp.xz.cn/plugins/search/remove+date/ that may be able to help remove the date. If you aren’t able to find a suitable solution using a plugin, you may also be able to remove the dates manually from your theme. If you require assistance in making any customized theme modifications, we would strongly advise contacting a WordPress developer for additional assistance.

    Thread Starter yydevelopment

    (@yydevelopment)

    Hey thanks for your answer,
    I do think that is that code is the reason google show the date.

    On the page itself i don’t have any other code that show the date and when i was able to remove that code in the past the date was remove as well from google results.

    I am a developer myself i don’t need to contact one and i was able to find a way to overwrite your code from within my theme so i guess i will wait a week or two and see which one is right.

    Thanks for the help and i have to say this is a great plugin so appreciate the sharing.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

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

The topic ‘Diable blog posts date output’ is closed to new replies.