Support » Plugin: Yoast SEO » Modified date before publishing date

  • Resolved Wendihihihi

    (@wendihihihi)


    I plan my posts ahead. I noticed that when the posts get posted the modified date has the date I scheduled the post and the publishing date is the date the post was published. Yoast SEO outputs it like this:

    <meta property="article:published_time" content="2020-07-03T04:45:04+00:00" />
    <meta property="article:modified_time" content="2020-04-14T09:10:38+00:00" />

    I wonder if it has any SEO implications and wouldn’t it be better to include in the code: if modified date is before the publishing date print the publishing date?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Tina

    (@mikes41720)

    Hello,

    Could you please confirm you are using the latest version of WordPress 5.4.2 and Yoast SEO for WordPress 14.4.1?

    The published time is the time at which the article was originally published, and the modified time is the time at which the article was last modified. You can learn more about it here — https://developer.yoast.com/features/schema/pieces/article/#required-properties

    So, based on your example, this means that you created a post and saved a draft of your article on April 14 and didn’t modify it anymore? And you set the published date to July 3? Is that correct? Or could you please provide us with more information on how to try and replicate this from our end?

    Wendihihihi

    (@wendihihihi)

    Could you please confirm you are using the latest version of WordPress 5.4.2 and Yoast SEO for WordPress 14.4.1?

    Both: Yes

    The published time is the time at which the article was originally published, and the modified time is the time at which the article was last modified.

    Obviously

    So, based on your example, this means that you created a post and saved a draft of your article on April 14?

    Not really. I created a post on April 14, 2020, put in the future date/time, looked at the preview, closed the preview screen and pressed the scheduled button to having it posted on July 3, 2020.

    and didn’t modify it anymore and you set the published date to July 3? Is that correct?

    That’s right.

    Or could you please provide us with more information on how to try and replicate this from our end?

    I created a post on April 14, 2020 and scheduled it for July 3, 2020.

    The Modified date and Publishing date are exactly the same as the dates shown on the All Posts page in the Admin area.

    Published 2020/07/03 Modified 2020/04/14 16:10

    Plugin Support Pcosta88

    (@pcosta88)

    Hi,

    This is a bug. Thank you for bringing this issue to our attention. We apologize for the trouble you are experiencing with our plugin. An issue report is currently open with our development team for this issue.

    No known workarounds exist.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You can sign-up for it here https://yoast.com/newsletter/.

    Wendihihihi

    (@wendihihihi)

    Hi,

    No known workarounds exist.

    I don’t understand your reply. Of course there is a workaround. Even a simple change in indexable-post-type-presentation.php will do.

    Line 267

    Change to this

    	public function generate_open_graph_article_modified_time() {
    		if ( $this->source->post_modified_gmt < $this->source->post_date_gmt ) {
    			return $this->date->format( $this->source->post_date_gmt );
    		} else if ( $this->source->post_modified_gmt !== $this->source->post_date_gmt ) {
    			return $this->date->format( $this->source->post_modified_gmt );
    		} 
    
    		return '';
    	}

    Done.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You can sign-up for it here https://yoast.com/newsletter/.

    I don’t understand your reply. I subscribed 2-3 years ago. Do you mean I should subscribe again or is there another newsletter I am not aware of?

    Plugin Support Michael Tina

    (@mikes41720)

    Hello,

    When the bug was logged, there was no known workaround that existed. However, thank you for sharing this information. We’ve shared this as a comment in the bug report.

    The newsletter is where we announce plugin releases and updates, so if you’re already subscribed, then you’re all good. For future releases, you can check the detailed changelog for bug fixes and enhancements, including this issue.

    Ok, clear, Michael. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.