• Resolved Anonymous User 9948090

    (@anonymized-9948090)


    Hi

    This is regarding a bug present in Yoast SEO plugin which incorrectly outputs “Published Date” in Schema, OG, etc.

    How to Recreate bug:

    Select a post. Let’s assume its published date is January 1, 2012.
    Now to bump the post, I modified the post and changed its published date to November 04, 2021.
    Yoast SEO will start showing new date as original published date in schema and og which is incorrect.
    When we change published date of a post, its original published date is saved in “_wp_old_date” in wp_postmeta table.
    So Yoast SEO should check first for the “_wp_old_date” value of a post. If its present, then it should show the correct published date in schema and OG.

    I noticed this bug because I regularly bump old topics for new users.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi @yet-another-wp-user

    We understand you’ve changed the ‘published date’ to November 4, 2021. Is it not possible to not change the published date at all?

    We do know that the Article schema should output values for both datePublished and dateModifiedhttps://developer.yoast.com/features/schema/pieces/article/

    Otherwise, we would like to refer you to this article regarding dates in the search results, and if you would like to make modifications from the default outputs – https://yoast.com/help/date-appears-search-results/

    Thread Starter Anonymous User 9948090

    (@anonymized-9948090)

    Hi

    Thanks for the reply.

    I need to change the date to BUMP the articles so that the article can arrive in the FEED and homepage and readers can know that the article has been updated.

    What I want that the plugin should check first whether the “_wp_old_date” key present for the article in database or not. If present, then it should output the real or actual published date in Schema markup and OG which will be the correct behavior.

    As much as we hate to say it, your question goes beyond the technical expertise of me and my colleagues on the Yoast support team. This means we can’t give you a solid answer to your question.

    But we don’t want to leave you empty-handed either, that’s why we’ve created our developer portal at developer.yoast.com. This has proven to be useful to many developers in the past, and hopefully will serve you well too.

    Sorry we can’t be of more help here.

    Thread Starter Anonymous User 9948090

    (@anonymized-9948090)

    Ok. Thanks for the help.

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

The topic ‘Bug Related to Published Date’ is closed to new replies.