How to add update date in pages.
Thanks.
]]>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');
$updated_time = get_the_modified_time('h:i a');
$custom_content .= '<p class="last-updated">Last updated on '. $updated_date . ' at '. $updated_time .'</p>';
}
$custom_content .= $content;
return $custom_content;
}
add_filter( 'the_content', 'wpb_last_updated_date' );
I would appreciate any suggestions
Thanks
Can any one tell me how to have my trope theme display the author name and date of update for my posts and pages? I am asking this because I’m getting a lot of structured data errors on Google’s webmaster tool.
I am just a newbie and not a techie.
My site is https://legitimatebusinessonline.com/
Regards
Yared
For instance, usually the plugin reports the same date as WP.org, so even if another plugin only changes a readme file and there is no “real” update, this plugin displays the date of the update to the readme, which matches the Last Updated date on WP.org. But this week a plugin changed something in the readme file and this plugin is still showing the same Last Updated date as before, even though WP.org is showing the date from a few days ago.
Also, today I simultaneously updated two plugins. This plugin displays the correct date for only one of them, and the date changed as soon as the update completed. For the other, WP.org is showing today but the plugin is showing last week, even after clearing my browser cache.
Is there something I can do on my end to troubleshoot this, or would there be something you can do to ensure consistency?
Thanks!!
https://www.ads-software.com/plugins/plugins-last-updated-column/
]]>I suspect this might be because it wasn’t a “real” update, but I could be wrong… I’m really not sure, because the Plugins Last Updated Column usually picks up the correct date when all that changes is the readme file and there is no “official” update. That’s why I’m posting here first — this is the first time a readme file change hasn’t triggered a new date in the Plugins Last Updated Column.
Any idea how to get it to display the correct date? Thanks!
]]>https://www.ads-software.com/plugins/link-library/
]]>If I update it, then it says:
This entry was posted on 12 December 2014 (updated on 12 December 2014)
In the first instance, I would like it to say
This entry was updated on 12 December 2014
and after an update, I would like it to say:
This entry was updated on 14 December 2014
In other words, it should say “updated” in either case, and use the latest save date. Could someone please help me, tell me what I need to change?
]]>Because I make a lot of changes in my posts to meet with the latest information but when I go to Google to see how my pages are indexed it shows the post creation date that is 2-3 years aged being that I updated all the information last week to meet the current facts… There are certain situations that it is better to use the same post instead of creating a new one for SEO… I was thinking if your plugin can help with this.
Thanks.
https://www.ads-software.com/extend/plugins/wp-post-date-remover/
]]>