Thank you so much for your kind review. It means a lot to me. Let me know if you have any feature requests related to the plugin.
If below parameters will be upodate by update title best feedback:
<meta property=”article:published_time” content=”2021-04-15T21:08:36+00:00″ />
<meta property=”article:modified_time” content=”2021-04-15T21:24:36+00:00″ />
Do you want to replace the article:modified_time with today’s date?
If yes there is a small trick involved.
Can you provide me following details:
1. Which SEO plugin are you using?
2. Which WordPress theme are you using?
Yes yes bro,
Which SEO plugin are you using?
Yoast
Which WordPress theme are you using?
Theme create by a developer and no use purchase theme
Hi Ali,
add_filter(
'wpseo_frontend_presenter_classes'
, function($filter) {
return array_diff($filter, [
'Yoast\WP\SEO\Presenters\Open_Graph\Article_Modified_Time_Presenter',
]);
}
);
function tweak_modified_schema(){?>
<meta property="article:modified_time" content="<?php echo date_i18n('Y-m-d'); ?>T00:00:00+00:00" />
<?php }
add_action ('wp_head', 'tweak_modified_schema',1);
Use this code in your child theme’s functions.php file at the bottom; or use a plugin like CodeSnippets: https://wordpress.org/plugins/code-snippets/ to insert this code.
What it does:
1. It removes <meta property=”article:modified_time” content=”2021-04-15T21:24:36+00:00″ /> etc.
2. It changes the date to today’s date but at 00:00:00 (12AM exact, GMT time).
It doesn’t alter the published date. Changing published dates every day can be harmful to SEO.
Hi again,
How only echo current day bro?
Hi @aliexploit , apologies for the delay. Did you mean today’s day like Sunday, Monday or today’s date like May 23, 2021?
Hi @gauravtiwari ,no problem
yes bro
I will code weekdays (like Sunday) in Next update.
You can echo today’s date by using <?php echo do_shortcode('[date]');?>