Modified and Updated Timestamp

#829669
  • Resolved Matthew Cannata
    Rank Math free

    Hello, I noticed when I make minor grammatical updates and also change WordPress tags or categories, then the following meta also get updated:

    <meta property=”article:modified_time” content=”2024-06-29T12:09:49-04:00″ />
    <meta property=”og:updated_time” content=”2024-06-29T12:09:49-04:00″ />

    How do I make it so these only get updated when I make significant changes to the copy (let’s say 20%), change internal links, or update the post schema?

    I am concerned that Google frowns upon this because I am not making significant updates but it is sending to the search engines that the post is being updated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for reaching out with your concern about the modified and updated timestamps in your meta tags. To prevent these timestamps from being updated unless significant changes are made to your content, you can use Rank Math’s filters to control when these timestamps are updated.

    You can add the following code snippet to your theme’s rank-math.php file to achieve this:

    add_filter('rank_math/opengraph/facebook/og_updated_time', function ($content) {
        return false;
    });
    
    add_filter('rank_math/opengraph/facebook/article_modified_time', function ($content) {
        return false;
    });

    By adding these filters, you can ensure that the og:updated_time and article:modified_time meta properties will only be updated when significant changes are made to your content, such as updating internal links or changing the post schema.

    If you need further assistance or have any more questions, feel free to reach out. We’re here to help!

    Have a great day!

    Sources:
    How to Prevent Modified Date of Your Blog Posts from Being Updated » Rank Math
    How to Change the Date & Time on Your Posts/Pages » Rank Math
    How to Remove Date Snippets from Search Results » Rank Math

    This looks like just the OG code, yah? I want to make sure that insignificant updates are NOT being sent to search engines.

    Hello,

    Those tags are automatically updated if you’re making updates in your articles regardless it’s a big or small change in the content.

    Unfortunately, we don’t have any option to change that behavior. You can either remove those tags or change the value via the filter code Rankbot has shared previously.

    This type of customization falls outside the scope of our support so you’ll need a coder to make that change for you.

    Don’t hesitate to get in touch with us if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Modified and Updated Timestamp’ is closed to new replies.