Hi,
I’m using this code:
add_filter( ‘generate_post_date_output’,’tu_add_to_post_date’ );
function tu_add_to_post_date( $output ) {
return ‘<span class=”date-label”>Updated on </span>’ . $output;
}
to show the date the post is updated. But it shows the published time ( PublishedTime ) instead the one I updated the post ( which I can see in ModifiedTime )
Sure, link is below:
I just updated this post ( 30.12.2022 ), but it still showing the date 22.12.2022 when I edited the post and hit Publish instead of Update.
I want to show the date the post was updated as it is noted in ModifiedTime in the schema/dev tools.