How can I make rank math: meta property

#730054
  • Resolved Anonymous
    Rank Math free

    How can I make rank math: meta property=”article:published_time” and meta property=”article:modified_time” to always be today’s current date?

Viewing 1 replies (of 1 total)
  • Hello, I apologize for the inconvenience you’re facing. To make the article:published_time and article:modified_time meta properties always display today’s current date, you can use the following filter in your theme’s functions.php file if you have Rank Math installed:

    add_filter( 'rank_math/opengraph/facebook/og_updated_time', function() {
        return current_time( 'c' );
    });
    
    add_filter( 'rank_math/opengraph/facebook/article_published_time', function() {
        return current_time( 'c' );
    });

    This code snippet will ensure that the article:published_time and article:modified_time meta properties always display today’s current date. If you need further assistance, please feel free to ask.

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

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 1 replies (of 1 total)

The ticket ‘How can I make rank math: meta property’ is closed to new replies.