Posted on 27 by out by 2020 at 04:32
The plugin looks like this: Updated: out 27, 2020 at 04:32
Is it possible to change this date to the same format?
PS: I changed in plugin settings at: Post Options > Last Modified Date and Time Format. But nothing happened.
]]>sitemap-1.xml file Last Modified date is 1970-01-01T00:00:00Z.
How to change present date for sitemap.
Thanks.
]]>First I want to thank you for developing this great plugin! I installed this plugin a few weeks ago because I want to show the visiters of my website the last modified date. I noticed that since I installed this plugin search engines like Google also show the last modified date. That, however, is something I do not want. I just want Google to show the meta descriptions of my pages in its results.
Is there a way to prevent search engines to show the last modified date? Maybe you have some code I can put in my functions.php file? Maybe you can consider to add a setting in your plugin to show last modified date in search results Yes/No.
Marco
]]>Is there a variable in Yoast to show the Last Updated Date of a post in Google Search Results?
We have single posts that show the Last Updated Date when you are on our website. But in a Google Search a single post shows the original Publish date. (You can see the third result down – Madison Reed Review on www.ireadlabelsforyou.com – shows the original publish date of Sept 15, 2015 – but when you open it – you see the updated date of February 11, 2017.)
https://www.google.com/search?q=madison+reed+review&oq=Madison+Reed+review&aqs=chrome.0.69i59l2j69i60j0l3.4391j0j7&sourceid=chrome&ie=UTF-8
We removed the date from Yoast Titles & Meta in Post Types hoping it would stop showing the original publish date in Search. This is what we have in Yoast: %%title%% %%page%% %%sep%% %%sitename%%
But this alone didn’t help us show the Last Updated Date. We added the following code from WP Beginner to our functions.php file:
//Code to add Last Updated Date to Blog Posts
function wpb_last_updated_date( $content ) {
$u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time(‘F jS, Y’);
$custom_content .= ‘<p class=”last-updated”>Last updated on ‘. $updated_date .'</p>’;
}
$custom_content .= $content;
return $custom_content;
}
add_filter( ‘the_content’, ‘wpb_last_updated_date’ );
Our theme designers also gave us this code to add to functions.php:
//Code to remove blog post date from SERPS
remove_action(‘kadence_single_post_before_header’, ‘virtue_single_post_meta_date’, 20);
remove_action(‘virtue_single_post_before_header’, ‘virtue_single_post_meta_date’, 20);
The Last Updated Date now shows in SERPS for our blog categories – just not for single posts that don’t have “category” in the url.
We thought if there was a variable for Last Updated Date we could add it to the Titles & Meta section of Yoast to see if that targets just the individual posts that do not come up as categories in Search.
Any advice would be welcome – thank you.
]]>So my front page where new posts (of a custom post type) are listed doesn’t say it’s been modified even after new content/posts have been added.
The same happens with custom taxonomy pages.
If I go to the pages and update them manually by simply clicking the ‘Update’ button then the Last Mod date does change.
]]>