Search for the Article

How To Show Last Updated Date on WordPress Posts

To display the last updated date instead of the publish date in WordPress, you can use the get_the_modified_date() function instead of get_the_date(). Here's how you can modify your code: This code is responsble for showing published date:
	
<?php echo esc_html( get_the_date( 'F j, Y' ) ); ?>
	
and here is the code for showing last updated post date:
	
<?php echo esc_html( get_the_modified_date( 'F j, Y' ) ); ?>